From d2a3b76a71d4f1513a4660a6b27f6832b5149502 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Fri, 21 Aug 2015 12:14:20 -0700 Subject: [PATCH] chore(build): change comment to indicate the temporary fix is permanent. Fixes #3770 Closes #3775 --- tools/broccoli/broccoli-ts2dart.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)