Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d37f92f

Browse filesBrowse files
committed
Test eval
1 parent 1f8fc98 commit d37f92f
Copy full SHA for d37f92f

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/wrap-require.ts

Copy file name to clipboardExpand all lines: src/wrap-require.ts
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.