News for hackers. Stuff that matters.
Re:Node v4.0.0 by amelius on Tuesday September 08, 2015 @04:09PM (#10187939)
I wonder how that would work asynchronously. Or when the file is used from both the browser and node.
Re:Node v4.0.0 by loganfsmyth on Tuesday September 08, 2015 @08:42PM (#10189035)
ES6 imports are declarative, so dependencies are resolved and executed before the body of the module is executed. That means you don't conceptually have to think about whether your dependencies are loading synchronously or asynchronously.
Re:Node v4.0.0 by Jimmed on Tuesday September 08, 2015 @04:15PM (#10187968)
If you're building isomorphic code for the browser using webpack, you can quite happily chunk certain modules into separate bundles which will be loaded asynchronously when needed. It's pretty awesome.