【发布时间】:2017-08-04 21:51:49
【问题描述】:
我尝试将我的 angular2 应用程序与带有 tsconfig.js 的 typescript 编译器捆绑在一起,如下所示:
{
"compilerOptions": {
"target": "es5",
"module": "system",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [ "es2015", "dom" ],
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true,
"outFile": "bundle.js"
}
}
它创建了一个 bundle.js,但没有任何角度依赖性。它只包括我自己的组件和打字稿文件。知道如何告诉编译器将引用的依赖项也包含到包中吗?
【问题讨论】:
标签: typescript systemjs