mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-11 10:10:25 +01:00
[PM-12004] Fix ~60 compile warnings in webpack for web (#11004)
This commit is contained in:
parent
6ffd85c42c
commit
e5bb2e58a6
5
apps/web/tsconfig.build.json
Normal file
5
apps/web/tsconfig.build.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"extends": "./tsconfig.json",
|
||||||
|
"files": ["src/polyfills.ts", "src/main.ts", "src/theme.ts"],
|
||||||
|
"include": ["src/connectors/*.ts", "../../libs/common/src/platform/services/**/*.worker.ts"]
|
||||||
|
}
|
@ -178,7 +178,7 @@ const plugins = [
|
|||||||
ADDITIONAL_REGIONS: envConfig["additionalRegions"] ?? [],
|
ADDITIONAL_REGIONS: envConfig["additionalRegions"] ?? [],
|
||||||
}),
|
}),
|
||||||
new AngularWebpackPlugin({
|
new AngularWebpackPlugin({
|
||||||
tsConfigPath: "tsconfig.json",
|
tsconfig: "tsconfig.build.json",
|
||||||
entryModule: "src/app/app.module#AppModule",
|
entryModule: "src/app/app.module#AppModule",
|
||||||
sourceMap: true,
|
sourceMap: true,
|
||||||
}),
|
}),
|
||||||
|
14
bitwarden_license/bit-web/tsconfig.build.json
Normal file
14
bitwarden_license/bit-web/tsconfig.build.json
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"extends": "./tsconfig",
|
||||||
|
"files": [
|
||||||
|
"../../apps/web/src/polyfills.ts",
|
||||||
|
"../../apps/web/src/main.ts",
|
||||||
|
"../../apps/web/src/theme.ts",
|
||||||
|
|
||||||
|
"../../bitwarden_license/bit-web/src/main.ts"
|
||||||
|
],
|
||||||
|
"include": [
|
||||||
|
"../../apps/web/src/connectors/*.ts",
|
||||||
|
"../../libs/common/src/platform/services/**/*.worker.ts"
|
||||||
|
]
|
||||||
|
}
|
@ -4,7 +4,7 @@ const webpackConfig = require("../../apps/web/webpack.config");
|
|||||||
|
|
||||||
webpackConfig.entry["app/main"] = "../../bitwarden_license/bit-web/src/main.ts";
|
webpackConfig.entry["app/main"] = "../../bitwarden_license/bit-web/src/main.ts";
|
||||||
webpackConfig.plugins[webpackConfig.plugins.length - 1] = new AngularWebpackPlugin({
|
webpackConfig.plugins[webpackConfig.plugins.length - 1] = new AngularWebpackPlugin({
|
||||||
tsconfig: "../../bitwarden_license/bit-web/tsconfig.json",
|
tsconfig: "../../bitwarden_license/bit-web/tsconfig.build.json",
|
||||||
entryModule: "bitwarden_license/src/app/app.module#AppModule",
|
entryModule: "bitwarden_license/src/app/app.module#AppModule",
|
||||||
sourceMap: true,
|
sourceMap: true,
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user