Skip to content

Instantly share code, notes, and snippets.

@brianleroux
Created November 12, 2014 10:24
Show Gist options
  • Save brianleroux/3f06fb09ee9ded73aa1a to your computer and use it in GitHub Desktop.
Save brianleroux/3f06fb09ee9ded73aa1a to your computer and use it in GitHub Desktop.
"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;
let echo = (str)=>str
export default echo
traceur es6.js --out compiled.js --modules=commonjs
@guybedford
Copy link

The --out option does all the Traceur stuffs. Use the --dir option rather.

@brianleroux
Copy link
Author

@guybedford OH FFS LOL

thx man 😄

@guybedford
Copy link

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