In case you’ve not paid attention to GH:
Go man go! The new release constraint scheme for core packages looks cool too.
In case you’ve not paid attention to GH:
Go man go! The new release constraint scheme for core packages looks cool too.
This is going to be absolutely epic. Can’t wait to see some content explaining the details of this project, it’s actually a huge step forward not only for Meteor but for JavaScript overall.
Great news. You are our hero, Ben! Thank you.
Awesome, I have been hanging for an update
That’s awesome! I would love to hear more about how code splitting works with regards to routing? Is it completely independent, or does it need to talk to the router somehow?
Can you elaborate or provide a link please?
That will finally make using imports in Meteor meaningful. Can’t wait.
It’s completely router independent. I think we have had a pretty consistent position that nether data loading nor other stuff like module loading should be coupled to routes.
Thanks a lot.
That’s great! While we’re on the topic:
Based on what I know:
Following the spec for async module loading, you get a promise. So you can show a loading thingy while the promise is not yet resolved.
I think it will work with anything module-based, as long as you use import(...)
to ask for the module.
This is very promising, we’re seeing the fruits of the refactoring we had to do along with Meteor toward ES2015 and the Node.js ecosystem.
It’s also nice to see very smart and talented people solving leading edge industry wide problems in the platform we grew to love
Great work! Can’t wait to test it!!
With this new feature, we have to replace all of our import {foo} from 'bar'
to import('bar')
or it will just work?
Ben is a genius. Nice hire by Meteor.
So how would that work in the context of react? can we import react components dynamically as the user navigate the routes?
Yes you can! Better yet it’s a standard so routers can safely add support for it and it will work with a variety of module systems.
Only if you want that module loaded on demand
Will this also include further optimizations such as finally getting rid of jQuery and maybe even underscore as mandatory dependencies?
This is really exciting. Just speculating here, but would love to see this integrated in the build system and have some kind of dynamic pre-loading as well. I can see so many uses !!