Skip to content

Commit d37f92f

Browse files
committed
Test eval
1 parent 1f8fc98 commit d37f92f

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: global.module.paths.concat(process.cwd())
14+
paths: eval('module').paths.concat(process.cwd())
1515
})
1616
}
1717
},

0 commit comments

Comments
 (0)