We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 377e3ac commit d2a3b76Copy full SHA for d2a3b76
tools/broccoli/broccoli-ts2dart.ts
@@ -20,7 +20,10 @@ class TSToDartTranspiler implements DiffingBroccoliPlugin {
20
}
21
22
rebuild(treeDiff: DiffResult) {
23
- // replace with toEmit = [] once https://github.com/angular/angular/issues/3770 is fixed
+ // 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
27
let toEmit = [path.resolve(this.inputPath, 'angular2/traceur-runtime.d.ts')];
28
let getDartFilePath = (path: string) => path.replace(/((\.js)|(\.ts))$/i, '.dart');
29
treeDiff.addedPaths.concat(treeDiff.changedPaths)
0 commit comments