|
|
@ -43,6 +43,7 @@ module.exports = composePlugins(withNx(), withReact(), (config) => { |
|
|
|
"vm": require.resolve('vm-browserify'), |
|
|
|
"vm": require.resolve('vm-browserify'), |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// add externals
|
|
|
|
// add externals
|
|
|
|
config.externals = { |
|
|
|
config.externals = { |
|
|
|
...config.externals, |
|
|
|
...config.externals, |
|
|
@ -71,6 +72,16 @@ module.exports = composePlugins(withNx(), withReact(), (config) => { |
|
|
|
}) |
|
|
|
}) |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// souce-map loader
|
|
|
|
|
|
|
|
config.module.rules.push({ |
|
|
|
|
|
|
|
test: /\.js$/, |
|
|
|
|
|
|
|
use: ["source-map-loader"], |
|
|
|
|
|
|
|
enforce: "pre" |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
config.ignoreWarnings = [/Failed to parse source map/] // ignore source-map-loader warnings
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// set minimizer
|
|
|
|
// set minimizer
|
|
|
|
config.optimization.minimizer = [ |
|
|
|
config.optimization.minimizer = [ |
|
|
|
new TerserPlugin({ |
|
|
|
new TerserPlugin({ |
|
|
|