From 06c0d9666fbc4621e7de47472d5da5c7ef691dc2 Mon Sep 17 00:00:00 2001 From: Olivier Combe Date: Mon, 23 Apr 2018 17:47:51 +0200 Subject: [PATCH] build(common): mark locales files as side-effect-full (#23509) Fixes https://github.com/angular/angular-cli/issues/10322 PR Close #23509 --- packages/common/locales/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/locales/package.json b/packages/common/locales/package.json index 6baf80d756..47fd7ad86e 100644 --- a/packages/common/locales/package.json +++ b/packages/common/locales/package.json @@ -1,4 +1,4 @@ { "description": "This directory contains UMD files which by its nature are not side-effect free. The parent package.json marks the whole @angular/common package as side-effect free, so if this directory is not excluded from that, build-optimizer will mark the contents as side-effect free and uglify will incorrectly remove all needed localization code.", - "sideEffects": false + "sideEffects": true }