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 …
-
-
-
@rhodesjason I see the current state of ES6 modules as doubling down on@substack's philosophy of small modules with few exports. -
-
@rhodesjason@substack require() requires blocking fetched and doesn't work with cyclic modules with single exports. -
@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 -
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.