chore: Bump to webpack 5

This commit is contained in:
Mike Welsh 2020-10-17 13:21:40 -07:00
parent 2fdb378e4f
commit 990052db77
6 changed files with 273 additions and 837 deletions

1093
web/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -29,7 +29,7 @@
"sign-addon": "^3.0.0",
"temp-dir": "^2.0.0",
"wdio-chromedriver-service": "^6.0.3",
"webpack": "^4.43.0"
"webpack": "^5.1.3"
},
"scripts": {
"bootstrap": "npm install && lerna bootstrap --hoist",

View File

@ -24,9 +24,11 @@ module.exports = (env, argv) => {
path: path.resolve(__dirname, "dist"),
filename: "ruffle.js",
chunkFilename: "core.ruffle.[contenthash].js",
jsonpFunction: "RufflePlayerLoader",
},
mode: mode,
experiments: {
syncWebAssembly: true,
},
plugins: [
new CleanWebpackPlugin(),
new WasmPackPlugin({

View File

@ -19,6 +19,9 @@ module.exports = (env, argv) => {
filename: "index.js",
},
mode: mode,
experiments: {
syncWebAssembly: true,
},
plugins: [
new CleanWebpackPlugin(),
new CopyWebpackPlugin({

View File

@ -23,9 +23,11 @@ module.exports = (env, argv) => {
path: path.resolve(__dirname, "build/dist"),
filename: "[name].js",
chunkFilename: "core.ruffle.js",
jsonpFunction: "RufflePlayerExtensionLoader",
},
mode: mode,
experiments: {
syncWebAssembly: true,
},
plugins: [
new CleanWebpackPlugin(),
new CopyPlugin({

View File

@ -18,9 +18,11 @@ module.exports = (env, argv) => {
path: path.resolve(__dirname, "dist"),
filename: "ruffle.js",
chunkFilename: "core.ruffle.[contenthash].js",
jsonpFunction: "RufflePlayerLoader",
},
mode: mode,
experiments: {
syncWebAssembly: true,
},
plugins: [
new CleanWebpackPlugin(),
new CopyPlugin({