【发布时间】:2023-03-23 13:40:02
【问题描述】:
我只是在检查 angular cli 生成的文件。我注意到 tsconfig.spec.json 使用 commonJs 作为模块,而 tsconfig.app.json 使用 es2015 作为模块。
选择不同的模块实现有什么理由吗?
Angular CLI 版本:1.1.1
【问题讨论】:
-
stackoverflow.com/questions/42982786/… 我认为'commonjs'更适合服务器端,'es2015'更适合应用端。
标签: angular