fix(bazel): packager not properly removing amd directives on windows (#27829)
PR Close #27829
This commit is contained in:
parent
4caf6540d1
commit
8473d68ea8
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue