Test eval

This commit is contained in:
Jonathan Clem 2021-04-21 17:06:36 -04:00
parent 1f8fc98741
commit d37f92ff11
No known key found for this signature in database
GPG key ID: 2159A758355F0178

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: global.module.paths.concat(process.cwd()) paths: eval('module').paths.concat(process.cwd())
}) })
} }
}, },