Skip to content

Commit d2a3b76

Browse files
committed
chore(build): change comment to indicate the temporary fix is permanent.
Fixes angular#3770 Closes angular#3775
1 parent 377e3ac commit d2a3b76

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/broccoli/broccoli-ts2dart.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ class TSToDartTranspiler implements DiffingBroccoliPlugin {
2020
}
2121

2222
rebuild(treeDiff: DiffResult) {
23-
// replace with toEmit = [] once https://github.com/angular/angular/issues/3770 is fixed
23+
// Matches rootFilePaths in node_tree.ts
24+
// These files are not compatible with Typescript's ES6 library
25+
// so they must be explicitly included when targetting ES5, as ts2dart does.
26+
// see https://github.com/angular/angular/issues/3770
2427
let toEmit = [path.resolve(this.inputPath, 'angular2/traceur-runtime.d.ts')];
2528
let getDartFilePath = (path: string) => path.replace(/((\.js)|(\.ts))$/i, '.dart');
2629
treeDiff.addedPaths.concat(treeDiff.changedPaths)

0 commit comments

Comments
 (0)