Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63e3262 commit e3bf20cCopy full SHA for e3bf20c
server/build/root-module-relative-path.js
@@ -5,7 +5,9 @@
5
// This function returns paths relative to the top-level 'node_modules'
6
// directory found in the path. If none is found, returns the complete path.
7
8
-const RELATIVE_START = 'node_modules/'
+import { sep } from 'path'
9
+
10
+const RELATIVE_START = `node_modules${sep}`
11
12
// Pass in the module's `require` object since it's module-specific.
13
export default (moduleRequire) => (path) => {
0 commit comments