fix(ts2dart): Adjust to new ts2dart API.

This commit is contained in:
Martin Probst 2015-04-03 15:19:34 -07:00
parent 3285ffba16
commit 838aa2aaa9
1 changed files with 2 additions and 1 deletions

View File

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