Charles Phelps
Charles Phelps

Reputation: 39

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.

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?

<script src="https://github.jspm.io/jmcriffey/[email protected]/traceur-runtime.js"></script>
script src="https://jspm.io/[email protected]"></script>

...Or do I only need the script element for SystemJS?

Upvotes: 1

Views: 190

Answers (1)

Arnaud Boeglin
Arnaud Boeglin

Reputation: 773

No, as far as I know traceur still is a dependency of 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.

Upvotes: 1

Related Questions