fix: failsafe for webpack

This commit is contained in:
cha0s 2021-03-20 10:47:06 -05:00
parent 92c6ad9a4f
commit 040e9770b7

View File

@ -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,",