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 b0e12e7

Browse filesBrowse files
committed
Add Webpack comment vis-a-vis eval
1 parent 7e12bd7 commit b0e12e7
Copy full SHA for b0e12e7

File tree

2 files changed

+4
-0
lines changed
Filter options

2 files changed

+4
-0
lines changed

‎dist/index.js

Copy file name to clipboardExpand all lines: dist/index.js
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2906,6 +2906,8 @@ const wrapRequire = new Proxy(require, {
29062906
const modulePath = target.resolve.apply(thisArg, [
29072907
moduleID,
29082908
{
2909+
// Webpack does not have an escape hatch for getting the actual
2910+
// module, other than `eval`.
29092911
paths: eval('module').paths.concat(process.cwd())
29102912
}
29112913
]);

‎src/wrap-require.ts

Copy file name to clipboardExpand all lines: src/wrap-require.ts
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export const wrapRequire = new Proxy(__non_webpack_require__, {
1313
const modulePath = target.resolve.apply(thisArg, [
1414
moduleID,
1515
{
16+
// Webpack does not have an escape hatch for getting the actual
17+
// module, other than `eval`.
1618
paths: eval('module').paths.concat(process.cwd())
1719
}
1820
])

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.