1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-23 03:22:50 +02:00

[PM-12004] Fix ~60 compile warnings in webpack for web (#11004)

This commit is contained in:
Oscar Hinton 2024-09-19 15:00:07 +02:00 committed by GitHub
parent 6ffd85c42c
commit e5bb2e58a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 21 additions and 2 deletions

View 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"]
}

View File

@ -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,
}), }),

View 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"
]
}

View File

@ -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,
}); });