in node: var fs = require('fs') in es6: import "fs"; let fs = this.get("fs");https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-06/jun-5-modules.md#do-we-need-the-module-foo-from-foo-import-syntax …
-
-
@wycats@rhodesjason@substack what's the difference between `require("foo")` and `import "foo"` wrt fetching? If both were native syntax? -
@kidkarolis@rhodesjason@substack we can't break var require = function() {}; require("foo") for obvious reasons.
End of conversation
New conversation -
-
-
@wycats@rhodesjason@substack does `import foo from "foo"` work with cyclic modules with single default exports? -
@wycats@rhodesjason@substack but what's the difference? They look so similar.
End of conversation
New conversation -
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.