diff --git a/apps/web/tsconfig.build.json b/apps/web/tsconfig.build.json new file mode 100644 index 0000000000..b10c4f9d89 --- /dev/null +++ b/apps/web/tsconfig.build.json @@ -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"] +} diff --git a/apps/web/webpack.config.js b/apps/web/webpack.config.js index 99dc747925..fee60264ea 100644 --- a/apps/web/webpack.config.js +++ b/apps/web/webpack.config.js @@ -178,7 +178,7 @@ const plugins = [ ADDITIONAL_REGIONS: envConfig["additionalRegions"] ?? [], }), new AngularWebpackPlugin({ - tsConfigPath: "tsconfig.json", + tsconfig: "tsconfig.build.json", entryModule: "src/app/app.module#AppModule", sourceMap: true, }), diff --git a/bitwarden_license/bit-web/tsconfig.build.json b/bitwarden_license/bit-web/tsconfig.build.json new file mode 100644 index 0000000000..9bebbeb506 --- /dev/null +++ b/bitwarden_license/bit-web/tsconfig.build.json @@ -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" + ] +} diff --git a/bitwarden_license/bit-web/webpack.config.js b/bitwarden_license/bit-web/webpack.config.js index bf192b5411..ce5f0075af 100644 --- a/bitwarden_license/bit-web/webpack.config.js +++ b/bitwarden_license/bit-web/webpack.config.js @@ -4,7 +4,7 @@ const webpackConfig = require("../../apps/web/webpack.config"); webpackConfig.entry["app/main"] = "../../bitwarden_license/bit-web/src/main.ts"; 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", sourceMap: true, });