From 9cfdfd22610e787357f982c278eaced5fb9df2b5 Mon Sep 17 00:00:00 2001 From: lichengyin Date: Fri, 15 Jan 2016 18:38:27 +0800 Subject: [PATCH] feture: add --allowSyntheticDefaultImports flag when create TypeScript apps --- src/util/watch_compile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/watch_compile.js b/src/util/watch_compile.js index 40bc8967..1f2a74f5 100644 --- a/src/util/watch_compile.js +++ b/src/util/watch_compile.js @@ -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){