Try global.module

This commit is contained in:
Jonathan Clem
2021-04-21 17:04:41 -04:00
parent ade5cea985
commit f57c84a8e8

View File

@@ -11,7 +11,7 @@ export const wrapRequire = new Proxy(__non_webpack_require__, {
return target.apply(thisArg, [moduleID]) return target.apply(thisArg, [moduleID])
} catch (err) { } catch (err) {
return target.resolve(moduleID, { return target.resolve(moduleID, {
paths: module.paths.concat(process.cwd()) paths: global.module.paths.concat(process.cwd())
}) })
} }
}, },