[英]If I use TypeScript to create ES5 script, do I need a traceur script tag in my html?
I am using TypeScript 1.5 to generate ES5 script for a simple angular2 app. 我正在使用TypeScript 1.5为简单的angular2应用生成ES5脚本。
Will I need to include both a script element referencing a module loader (such as SystemJS) AND a script element referencing traceur (such as the one below) in my index.html file? 我是否需要在index.html文件中同时包含引用模块加载程序的脚本元素(例如SystemJS)和引用traceur的脚本元素(例如下面的脚本)?
<script src="https://github.jspm.io/jmcriffey/bower-traceur-runtime@0.0.91/traceur-runtime.js"></script>
script src="https://jspm.io/system@0.16.js"></script>
...Or do I only need the script element for SystemJS? ...或者我只需要SystemJS的script元素?
No, as far as I know traceur still is a dependency of angular2. 不,据我所知traceur仍然是angular2的依赖项。 There's an issue to remove it though, therefore in the future it'll be possible.
不过,存在删除它的问题,因此将来有可能。 Here you can find the issue for it if you want to track the progress.
如果要跟踪进度, 可以在这里找到问题所在。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.