mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
Define Angular CLI globals to support tree shaking (#1541)
This commit is contained in:
@@ -250,6 +250,13 @@ const webpackConfig = {
|
|||||||
new TerserPlugin({
|
new TerserPlugin({
|
||||||
terserOptions: {
|
terserOptions: {
|
||||||
safari10: true,
|
safari10: true,
|
||||||
|
// Replicate Angular CLI behaviour
|
||||||
|
compress: {
|
||||||
|
global_defs: {
|
||||||
|
ngDevMode: false,
|
||||||
|
ngI18nClosureMode: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user