Visual Studio can not combine JavaScript output in

2019-08-07 15:20发布

enter image description here

Settings I set before built are as seen picture above. I don't know what should i do extra to accomplish to combine all .ts files into one single .js file.

2条回答
Anthone
2楼-- · 2019-08-07 15:57

Set module system to none and make sure you are not using external modules. These do not work with --out at the moment.

Difference : https://www.youtube.com/watch?v=KDrWLMUY0R0&hd=1

If you want a single file from commonjs modules you need to use something like webpack or browserify. TS won't do it : https://github.com/Microsoft/TypeScript/issues/17

查看更多
该账号已被封号
3楼-- · 2019-08-07 16:01
登录 后发表回答