@wycats http://cl.ly/image/1V200l062R0P … Have a typo here. I think the right is `export default json`. (I dont see a place to make a PR)
-
-
-
@jcemer Thanks! Fixed: http://jsmodules.io/cjs.html Can submit PR to https://github.com/wycats/jsmodules …
End of conversation
New conversation -
-
-
@wycats I'm probably missing something, but why is the syntax for importing a whole module "import * as from 'fs'" and not "import 'fs'" ? -
@danfreedman the FP covers the details :) `import fs from "fs"` imports the default export. `import * as fs from "fs"` imports named
End of conversation
New conversation -
-
-
-
-
@hannesw@wycats http://mcepl.fedorapeople.org/tmp/jsmodules-io.png … with Firefox 24 (the official one on RHEL-7). -
-
New conversation -
-
-
I'm also quite happy about this recent change in the ES6 module syntax (/
@wycats): Old: module fs from "fs"; New: import * as fs from "fs";Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats Maybe also explain why you are using `var` and not `let` (i.e., that’s how the transpiler works).Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats Are you only author? Possibly: indicate authorship; add section “using it today” that points to Square’s transpiler.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats otherwise, great work! Very educational.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats Re:jsmodules Is import * as fs from "fs" replacing module keyword? I thought that ES discuss thread would never run out of steam.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats spotted a typo, request.js - the required thing on line 3 has different paths.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
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.