Define Angular CLI globals to support tree shaking (#1541)

This commit is contained in:
Oscar Hinton 2022-03-22 10:00:07 +01:00 committed by GitHub
parent 9bb004923c
commit d6c181c997
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

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