feture: add --allowSyntheticDefaultImports flag when create TypeScript apps

This commit is contained in:
lichengyin 2016-01-15 18:38:27 +08:00
parent 3d370b5b05
commit 9cfdfd2261

View File

@ -96,7 +96,8 @@ export default class {
module: ts.ModuleKind.CommonJS,
target: ts.ScriptTarget.ES6,
experimentalDecorators: true,
emitDecoratorMetadata: true
emitDecoratorMetadata: true,
allowSyntheticDefaultImports: true
}, file, diagnostics);
//has error
if(diagnostics.length){