mirror of
https://github.com/actions/github-script.git
synced 2025-12-25 23:23:07 +00:00
Add Webpack comment vis-a-vis eval
This commit is contained in:
@@ -13,6 +13,8 @@ export const wrapRequire = new Proxy(__non_webpack_require__, {
|
||||
const modulePath = target.resolve.apply(thisArg, [
|
||||
moduleID,
|
||||
{
|
||||
// Webpack does not have an escape hatch for getting the actual
|
||||
// module, other than `eval`.
|
||||
paths: eval('module').paths.concat(process.cwd())
|
||||
}
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user