diff --git a/tools/broccoli/broccoli-ts2dart.ts b/tools/broccoli/broccoli-ts2dart.ts index a3bd899162..0b89f18b41 100644 --- a/tools/broccoli/broccoli-ts2dart.ts +++ b/tools/broccoli/broccoli-ts2dart.ts @@ -20,7 +20,10 @@ class TSToDartTranspiler implements DiffingBroccoliPlugin { } rebuild(treeDiff: DiffResult) { - // replace with toEmit = [] once https://github.com/angular/angular/issues/3770 is fixed + // Matches rootFilePaths in node_tree.ts + // These files are not compatible with Typescript's ES6 library + // so they must be explicitly included when targetting ES5, as ts2dart does. + // see https://github.com/angular/angular/issues/3770 let toEmit = [path.resolve(this.inputPath, 'angular2/traceur-runtime.d.ts')]; let getDartFilePath = (path: string) => path.replace(/((\.js)|(\.ts))$/i, '.dart'); treeDiff.addedPaths.concat(treeDiff.changedPaths)