【发布时间】:2018-06-16 23:33:19
【问题描述】:
在 tsconfig.json 文件中,可以将以下选项指定为 compilerOptions 'module' 属性的值:
System
所以我们得到:
{
"compilerOptions": {
"module": "System",
...
System 是否引用 SystemJS(即,如果 SystemJS 被用作模块加载器,当我创建 AngularJS 或 Angular 应用程序时,我的 tsconfig.json 中是否总是需要“System”)?文档似乎没有解释这一点:
https://www.typescriptlang.org/docs/handbook/compiler-options.html
在 TypeScript 的 Visual Studio 项目配置中,“TypeScript Build > Module system”下还有一个“System”选项,这显然与 tsconfig.json 中的“System”指的是相同的东西。
【问题讨论】:
-
是的,它是 SystemJS
标签: angularjs angular typescript module