fix: failsafe for webpack
This commit is contained in:
parent
92c6ad9a4f
commit
040e9770b7
|
@ -1,10 +1,10 @@
|
|||
const banner = require('@neutrinojs/banner');
|
||||
|
||||
module.exports = require('../../config/.neutrinorc');
|
||||
module.exports = require('@latus/build/build/.neutrinorc.js');
|
||||
|
||||
const code = [
|
||||
"if ('client' !== process.env.SIDE) {",
|
||||
"require('pirates').addHook(",
|
||||
"('undefined' !== typeof __non_webpack_require__ ? __non_webpack_require__ : require)('pirates').addHook(",
|
||||
"(code, filename) => '',",
|
||||
"{",
|
||||
"ignoreNodeModules: false,",
|
||||
|
|
Loading…
Reference in New Issue
Block a user