mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-05 23:53:21 +00:00
[AC-1614] Updated webpack config (#352)
* [AC-1614] Updated webpack config * [AC-1614] Ran prettier * [AC-1614] Fix build
This commit is contained in:
@@ -70,5 +70,5 @@ export const regularImportOptions = [
|
||||
] as const;
|
||||
|
||||
export type ImportType =
|
||||
| typeof featuredImportOptions[number]["id"]
|
||||
| typeof regularImportOptions[number]["id"];
|
||||
| (typeof featuredImportOptions)[number]["id"]
|
||||
| (typeof regularImportOptions)[number]["id"];
|
||||
|
||||
@@ -57,7 +57,10 @@ const main = {
|
||||
],
|
||||
}),
|
||||
],
|
||||
externals: [nodeExternals()],
|
||||
externals: {
|
||||
"electron-reload": "commonjs2 electron-reload",
|
||||
keytar: "commonjs2 keytar",
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = merge(common, main);
|
||||
|
||||
@@ -10,7 +10,19 @@ const common = {
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /(?:\.ngfactory\.js|\.ngstyle\.js|\.ts)$/,
|
||||
test: /\.[cm]?js$/,
|
||||
use: [
|
||||
{
|
||||
loader: "babel-loader",
|
||||
options: {
|
||||
configFile: false,
|
||||
plugins: ["@angular/compiler-cli/linker/babel"],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
test: /\.[jt]sx?$/,
|
||||
loader: "@ngtools/webpack",
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user