tsconfig.json里
{
"compilerOptions": {
"module": "es6",
"lib": ["dom", "es5", "es2015.promise"],
"target": "es5",
"experimentalDecorators": true,
"skipLibCheck": true
},
"exclude": ["node_modules", "library", "local", "temp", "build", "settings"]
}
编译选项compilerOptions的模块module由commonjs改为es6