Skip to content

Instantly share code, notes, and snippets.

@tbranyen
Created March 9, 2014 03:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbranyen/9442705 to your computer and use it in GitHub Desktop.
Save tbranyen/9442705 to your computer and use it in GitHub Desktop.
Why ES6 has to be like this?
import modB from "./modB";
System.register("./modB", [], function() {
return { default: modB };
});
console.log(System.get('./modB').default);
@tbranyen
Copy link
Author

tbranyen commented Mar 9, 2014

Looks like:

import "modB";

console.log(System.get("modB").default);

Works just fine. Must be a traceur bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment