From 838aa2aaa93b6ea96353a262bce96bdc660982f6 Mon Sep 17 00:00:00 2001 From: Martin Probst Date: Fri, 3 Apr 2015 15:19:34 -0700 Subject: [PATCH] fix(ts2dart): Adjust to new ts2dart API. --- tools/transpiler/karma-ts2dart-preprocessor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/transpiler/karma-ts2dart-preprocessor.js b/tools/transpiler/karma-ts2dart-preprocessor.js index 36d47ef972..d15fe09a24 100644 --- a/tools/transpiler/karma-ts2dart-preprocessor.js +++ b/tools/transpiler/karma-ts2dart-preprocessor.js @@ -13,7 +13,8 @@ function createTs2DartPreprocessor(logger, basePath, config, emitter) { try { var moduleName = config.resolveModuleName(file.originalPath); file.path = config.transformPath(file.originalPath); - var transpiler = new ts2dart.Transpiler(); + var transpiler = new ts2dart.Transpiler( + {failFast: false, generateLibraryName: true, generateSourceMap: true}); var transpiledContent = transpiler.translateFile(file.originalPath, moduleName); // TODO(martinprobst): Source maps. done(null, transpiledContent);