fix(bazel): packager not properly removing amd directives on windows (#27829)

PR Close #27829
This commit is contained in:
Paul Gschwendtner 2018-12-25 20:12:23 +01:00 committed by Kara Erickson
parent 4caf6540d1
commit 8473d68ea8
1 changed files with 1 additions and 1 deletions

View File

@ -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(/^\/\/\/ <amd-module name=.*\/>\n/gm, '');
.replace(/^\/\/\/ <amd-module name=.*\/>[\r\n]+/gm, '');
writeFileFromInputPath(f, content);
});