Desugaring of module imports by Six transpiler Test at http://sixlang.org/docs/demo/demo.html
This file contains 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
// six doesn't support named modules, just import and export | |
// six doesn't support ImportSpecifierSet. | |
import state from "m"; | |
import modifyState from "m"; |
This file contains 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
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