1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 23:33:31 +00:00

Update webpack (#430)

* Update webpack

* also install dev dependencies in CI

* Add rimraf

* fix added whitespace

* Clarify node warnings and NPM compatibility
This commit is contained in:
Matt Gibson
2021-12-29 12:05:33 -06:00
committed by GitHub
parent 179f1dfe5d
commit 7bc485b08d
4 changed files with 969 additions and 7329 deletions

View File

@@ -18,7 +18,7 @@ const moduleRules = [
},
{
test: /\.ts$/,
loaders: ["ts-loader"],
use: "ts-loader",
exclude: path.resolve(__dirname, "node_modules"),
},
];
@@ -35,7 +35,10 @@ const plugins = [
banner: "#!/usr/bin/env node",
raw: true,
}),
new webpack.IgnorePlugin(/^encoding$/, /node-fetch/),
new webpack.IgnorePlugin({
resourceRegExp: /^encoding$/,
contextRegExp: /node-fetch/,
}),
];
const config = {