3 ms·
I wonder how that would work asynchronously. Or when the file is used from both the browser and node.
by amelius 11y ago
I wonder how that would work asynchronously. Or when the file is used from both the browser and node.
- Jimmed 11y agoIf 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.
- loganfsmyth 11y agoES6 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.