Fix webpack config causing web bundle to not run

This commit is contained in:
Max Goodman
2024-08-26 22:27:50 -07:00
parent 760534326f
commit 9f17ed96b4
2 changed files with 2 additions and 9 deletions

View File

@@ -1,7 +1,4 @@
const nodeExternals = require('webpack-node-externals');
module.exports = ({ babel }) => ({ module.exports = ({ babel }) => ({
externals: [nodeExternals()],
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development', mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
devtool: process.env.NODE_ENV === 'production' ? 'source-map' : 'eval-source-map', devtool: process.env.NODE_ENV === 'production' ? 'source-map' : 'eval-source-map',
module: { module: {
@@ -49,12 +46,6 @@ module.exports = ({ babel }) => ({
http: require.resolve("stream-http") http: require.resolve("stream-http")
} }
}, },
optimization: {
moduleIds: 'deterministic',
splitChunks: {
chunks: 'all',
},
},
stats: { stats: {
colors: true, colors: true,
modules: true, modules: true,

View File

@@ -1,4 +1,5 @@
const path = require('path'); const path = require('path');
const nodeExternals = require('webpack-node-externals');
const baseConfig = require('./webpack.base.config') const baseConfig = require('./webpack.base.config')
module.exports = { module.exports = {
@@ -15,6 +16,7 @@ module.exports = {
], ],
}, },
}), }),
externals: [nodeExternals()],
entry: './src/node/main.js', entry: './src/node/main.js',
output: { output: {
path: path.resolve(__dirname, '.webpack/main'), path: path.resolve(__dirname, '.webpack/main'),