Skip to content

Instantly share code, notes, and snippets.

@domenic
Created December 20, 2012 17:38
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 domenic/4347076 to your computer and use it in GitHub Desktop.
Save domenic/4347076 to your computer and use it in GitHub Desktop.
Desugaring of module imports by Six transpiler Test at http://sixlang.org/docs/demo/demo.html
// six doesn't support named modules, just import and export
// six doesn't support ImportSpecifierSet.
import state from "m";
import modifyState from "m";
if (typeof exports === 'object' && typeof define !== 'function') {
var define = function(factory) {
factory(require, exports);
};
}
define(function(require, exports) {
var state = require("m").state;
var modifyState = require("m").modifyState;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment