Created
November 12, 2014 10:24
-
-
Save brianleroux/3f06fb09ee9ded73aa1a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
Object.defineProperties(exports, { | |
default: {get: function() { | |
return $__default; | |
}}, | |
__esModule: {value: true} | |
}); | |
var __moduleName = "src/index"; | |
function require(path) { | |
return $traceurRuntime.require("src/index", path); | |
} | |
var echo = (function(str) { | |
return str; | |
}); | |
var $__default = echo; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let echo = (str)=>str | |
export default echo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
traceur es6.js --out compiled.js --modules=commonjs |
@guybedford OH FFS LOL
thx man 😄
Sure! It's badly documented yes, and the API isn't ideal with these kinds of subtle distinctions, but that's because these outputs are still kind of evolving too. It's still open though - we can look at removing the outer defineProperty if you don't like it for example.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
--out
option does all the Traceur stuffs. Use the--dir
option rather.