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);