mirror of
https://github.com/actions/github-script.git
synced 2025-12-09 00:26:20 +00:00
Remove require search fallback
This commit is contained in:
@@ -10,10 +10,9 @@ export const wrapRequire = new Proxy(__non_webpack_require__, {
|
||||
const modulePath = target.resolve.apply(thisArg, [
|
||||
moduleID,
|
||||
{
|
||||
// Search the current working directory first, then the existing paths.
|
||||
// Webpack does not have an escape hatch for getting the actual
|
||||
// module, other than `eval`.
|
||||
paths: [process.cwd(), ...eval('module').paths]
|
||||
paths: [process.cwd()]
|
||||
}
|
||||
])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user