Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f57c84a

Browse files
committed
Try global.module
1 parent ade5cea commit f57c84a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wrap-require.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const wrapRequire = new Proxy(__non_webpack_require__, {
1111
return target.apply(thisArg, [moduleID])
1212
} catch (err) {
1313
return target.resolve(moduleID, {
14-
paths: module.paths.concat(process.cwd())
14+
paths: global.module.paths.concat(process.cwd())
1515
})
1616
}
1717
},

0 commit comments

Comments
 (0)