From b847257b16c2ed5957b9726bc63464daaa7b2310 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Tue, 13 Sep 2016 21:59:11 -0700 Subject: [PATCH] refactor(ShadowCss): remove a comment that trigger an issue with webpack (#11587) fixes #11584 --- modules/@angular/compiler/src/shadow_css.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/@angular/compiler/src/shadow_css.ts b/modules/@angular/compiler/src/shadow_css.ts index d8b4cb5304..6d29a69711 100644 --- a/modules/@angular/compiler/src/shadow_css.ts +++ b/modules/@angular/compiler/src/shadow_css.ts @@ -483,7 +483,7 @@ function stripComments(input: string): string { return StringWrapper.replaceAllMapped(input, _commentRe, (_: any /** TODO #9100 */) => ''); } -// all comments except inline source mapping ("/* #sourceMappingURL= ... */") +// all comments except inline source mapping const _sourceMappingUrlRe = /\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//; function extractSourceMappingUrl(input: string): string {