fix: webpack in nodespace

This commit is contained in:
cha0s 2023-12-31 16:21:56 -06:00
parent 95e18b9978
commit 9c4d273279

View File

@ -143,7 +143,7 @@ class Compiler {
[ [
'prepend', 'prepend',
{ {
prepend: 'const __non_webpack_require__ = require;', prepend: '"undefined" === typeof global.__non_webpack_require__ && (global.__non_webpack_require__ = require);',
}, },
'__non_webpack_require__', '__non_webpack_require__',
], ],