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

Remove webpack-node-externals and use asarUnpack (#1221)

This commit is contained in:
Oscar Hinton
2022-01-12 11:32:02 +01:00
committed by GitHub
parent 23a7072341
commit f6f0bd2bfb
5 changed files with 10 additions and 2173 deletions

View File

@@ -2,7 +2,6 @@ const path = require("path");
const { merge } = require("webpack-merge");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
const nodeExternals = require("webpack-node-externals");
const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin");
const NODE_ENV = process.env.NODE_ENV == null ? "development" : process.env.NODE_ENV;
@@ -76,11 +75,9 @@ const main = {
],
}),
],
externals: [
nodeExternals({
allowlist: ["rxjs"],
}),
],
externals: {
"electron-reload": "commonjs2 electron-reload",
},
};
module.exports = merge(common, NODE_ENV === "development" ? dev : prod, main);