Update to webpack version 5

This commit is contained in:
Oliver Blanthorn 2021-01-01 16:10:03 +01:00
parent ede89e683a
commit 81bdda9a9d
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
4 changed files with 344 additions and 693 deletions

View file

@ -14,6 +14,7 @@
"ramda": "^0.27.1",
"rss-parser": "^3.10.0",
"semver-compare": "^1.0.0",
"stream-browserify": "^3.0.0",
"tsdef": "^0.0.14",
"typedoc-default-themes": "^0.12.0"
},
@ -55,7 +56,7 @@
"uglifyjs-webpack-plugin": "^2.2.0",
"web-ext": "^5.4.1",
"web-ext-types": "^3.2.1",
"webpack": "^4.44.2",
"webpack": "^5.11.1",
"webpack-cli": "^3.3.12"
},
"scripts": {

View file

@ -64,7 +64,7 @@ if [ "$1" != "--no-native" ]; then
fi
fi
webpack --display errors-only --bail
webpack --stats errors-only --bail
scripts/bodgecss.sh
scripts/authors.sh

View file

@ -28,7 +28,16 @@ module.exports = {
resolve: {
// Add '.ts' and '.tsx' as resolvable extensions.
extensions: fileExtensions,
plugins: [new TsconfigPathsPlugin({extensions: fileExtensions})]
plugins: [new TsconfigPathsPlugin({extensions: fileExtensions})],
fallback: {
"url": false,
"fs": false,
"https": false,
"http": false,
"path": false,
"timers": false,
"stream": require.resolve("stream-browserify"),
},
},
module: {
@ -55,9 +64,4 @@ module.exports = {
{ from: "issue_template.md" },
]}),
],
// Fix css
// https://github.com/webpack-contrib/css-loader/issues/447#issuecomment-285598881
node: {
fs: "empty",
},
}

1016
yarn.lock

File diff suppressed because it is too large Load diff