feat(build): added a temporary fix to make test.unit.dart work
This commit is contained in:
parent
a9ce454b21
commit
85ec34d1d9
|
@ -20,7 +20,8 @@ class TSToDartTranspiler implements DiffingBroccoliPlugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
rebuild(treeDiff: DiffResult) {
|
rebuild(treeDiff: DiffResult) {
|
||||||
let toEmit = [];
|
// replace with toEmit = [] once https://github.com/angular/angular/issues/3770 is fixed
|
||||||
|
let toEmit = [path.resolve(this.inputPath, 'angular2/traceur-runtime.d.ts')];
|
||||||
let getDartFilePath = (path: string) => path.replace(/((\.js)|(\.ts))$/i, '.dart');
|
let getDartFilePath = (path: string) => path.replace(/((\.js)|(\.ts))$/i, '.dart');
|
||||||
treeDiff.addedPaths.concat(treeDiff.changedPaths)
|
treeDiff.addedPaths.concat(treeDiff.changedPaths)
|
||||||
.forEach((changedPath) => {
|
.forEach((changedPath) => {
|
||||||
|
|
Loading…
Reference in New Issue