8000 Try global.module · Simran-B/github-script@f57c84a · GitHub
[go: up one dir, main page]

Skip to content

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

8000
Appearance settings

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)
0