Traceur is a JavaScript.next-to-JavaScript-of-today compiler
APACHE-2.0 License
Bot releases are hidden (Show)
...
in object literals which is currently at stage 2.var x = {a: 1};
var y = {...a, b: 2}; // {a: 1, b: 2}
<Abc/>
should generate React.createElement(Abc, null)
and not React.createElement('Abc', null)
.<a b/>
is short for <a b={true}/>
.<p a='a' {...{b: 1, c: 2}}/>
// same as (except the expansion happens at runtime)
<p a='a' b={1} c={2}/>
System
object.dist/commonjs/
. This making reusing core Traceur modules easier from projects such as es module loader:require('traceur/bin/traceur-runtime.js');
var Parser = require('traceur/dist/commonjs/syntax/Parser.js').Parser;
...
type NumberArray = Array<number>;
jsx
. You can provide your own--jsx=my.func
.React.createElement
.--modules=parse
output option. This allows outputting ES6 module syntax.WeakMap
/WeakSet
.// Options: --export-from-extended
export new from './file.js';
Object.keys
and Object.getOwnPropertyNames
if there is no native support for Symbol.--modules=instantiate
let
/const
in while
/do
-while
(#1970)