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@substack import foo from "bar" (default export) import { readFile } from "fs" (small number of named exports) -
-
@rhodesjason@substack I don't understand. -
-
@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. - 2 more replies
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.