From 8473d68ea8782f6e771fea3e257b59f62d10628f Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Tue, 25 Dec 2018 20:12:23 +0100 Subject: [PATCH] fix(bazel): packager not properly removing amd directives on windows (#27829) PR Close #27829 --- packages/bazel/src/ng_package/packager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bazel/src/ng_package/packager.ts b/packages/bazel/src/ng_package/packager.ts index 86bce27612..817a4ae92d 100644 --- a/packages/bazel/src/ng_package/packager.ts +++ b/packages/bazel/src/ng_package/packager.ts @@ -158,7 +158,7 @@ function main(args: string[]): number { typeDefinitions.forEach((f: string) => { const content = fs.readFileSync(f, 'utf-8') // Strip the named AMD module for compatibility with non-bazel users - .replace(/^\/\/\/ \n/gm, ''); + .replace(/^\/\/\/ [\r\n]+/gm, ''); writeFileFromInputPath(f, content); });