3 ms·
Wouldn't one rather use Traceur over JSTransform? It's ES6 coverage seems rather more extensive.
by lobster_johnson 12y ago
Wouldn't one rather use Traceur over JSTransform? It's ES6 coverage seems rather more extensive.
- wingspan 12y agoBecause if you are doing React and JSX you are already using JSTransform. If it gets you most of what you need, why add another dependency?
- lobster_johnson 12y agoTrue, but if you're using JSX on the server side, the dependency doesn't really cost anything. JSTransform's intended purpose, as far as I can see, is as a general-purpose syntax transformer (the ES6 transforms, of which there is only a handful, come as a bonus), whereas Traceur is a dedicated transpiler that is intended to be a complete implementation of ES6.