chore(deps): update dependency webpack-cli to v4.x

for webpack 5 compatibility
This commit is contained in:
Christopher Willis-Ford 2024-02-28 11:26:05 -08:00
parent 67521316f4
commit 89f83f7434
3 changed files with 219 additions and 541 deletions

View file

@ -5,11 +5,6 @@ const TerserPlugin = require('terser-webpack-plugin');
const base = {
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
devServer: {
contentBase: false,
host: '0.0.0.0',
port: process.env.PORT || 8073
},
devtool: 'cheap-module-source-map',
output: {
library: 'VirtualMachine',
@ -85,6 +80,11 @@ module.exports = [
// Playground
defaultsDeep({}, base, {
target: 'web',
devServer: {
contentBase: false,
host: '0.0.0.0',
port: process.env.PORT || 8073
},
entry: {
'benchmark': './src/playground/benchmark',
'video-sensing-extension-debug': './src/extensions/scratch3_video_sensing/debug'