Adjust webpack configs for webpack v5

This commit is contained in:
willclarktech
2021-04-15 12:38:26 +02:00
parent 5fc6066e91
commit d09fc0b60e
11 changed files with 64 additions and 4 deletions
+6 -1
View File
@@ -15,7 +15,12 @@ module.exports = [
path: distdir,
filename: "tests.js",
},
plugins: [new webpack.EnvironmentPlugin({ LAUNCHPAD_ENABLED: "" })],
plugins: [
new webpack.EnvironmentPlugin({ LAUNCHPAD_ENABLED: "" }),
new webpack.ProvidePlugin({
Buffer: ["buffer", "Buffer"],
}),
],
resolve: {
fallback: {
crypto: require.resolve("crypto-browserify"),