diff --git a/webpack.base.config.js b/webpack.base.config.js index 33405d9..f9fa76f 100644 --- a/webpack.base.config.js +++ b/webpack.base.config.js @@ -1,7 +1,4 @@ -const nodeExternals = require('webpack-node-externals'); - module.exports = ({ babel }) => ({ - externals: [nodeExternals()], mode: process.env.NODE_ENV === 'production' ? 'production' : 'development', devtool: process.env.NODE_ENV === 'production' ? 'source-map' : 'eval-source-map', module: { @@ -49,12 +46,6 @@ module.exports = ({ babel }) => ({ http: require.resolve("stream-http") } }, - optimization: { - moduleIds: 'deterministic', - splitChunks: { - chunks: 'all', - }, - }, stats: { colors: true, modules: true, diff --git a/webpack.main.config.js b/webpack.main.config.js index fb58e23..f98714a 100644 --- a/webpack.main.config.js +++ b/webpack.main.config.js @@ -1,4 +1,5 @@ const path = require('path'); +const nodeExternals = require('webpack-node-externals'); const baseConfig = require('./webpack.base.config') module.exports = { @@ -15,6 +16,7 @@ module.exports = { ], }, }), + externals: [nodeExternals()], entry: './src/node/main.js', output: { path: path.resolve(__dirname, '.webpack/main'),