【发布时间】:2018-09-01 04:34:36
【问题描述】:
我有一个新项目,我想使用 Visual Studio、Typescript、ASP.net Core 和 CommonJS 模块进行编码系统。实际上我需要一个模块系统来组织我的依赖项。我该怎么办?
我可以在使用 Visual Studio 的打字稿项目中使用 CommonJS 模块系统吗?
ts 配置:
{
"compileOnSave": true,
"compilerOptions": {
"noImplicitAny": false,
"noEmitOnError": true,
"removeComments": false,
"sourceMap": true,
"target": "es5",
"module": "commonjs"
},
"exclude": [
"node_modules",
"wwwroot"
]
}
【问题讨论】:
标签: typescript asp.net-core commonjs