mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
Define Angular CLI globals to support tree shaking (#2450)
This commit is contained in:
@@ -125,6 +125,15 @@ const config = {
|
||||
minimizer: [
|
||||
new TerserPlugin({
|
||||
exclude: [/content\/.*/, /notification\/.*/],
|
||||
terserOptions: {
|
||||
// Replicate Angular CLI behaviour
|
||||
compress: {
|
||||
global_defs: {
|
||||
ngDevMode: false,
|
||||
ngI18nClosureMode: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
}),
|
||||
],
|
||||
splitChunks: {
|
||||
|
||||
Reference in New Issue
Block a user