Questions for planed bundler/bundling #1403
Replies: 3 comments 3 replies
-
Hey! Bundling is still really early, and mostly only built out to support our internal usage, as well as that of React Native while I was on that team. So my answers will understandably by pretty vague:
Yeah I expect us to support bundling non-JavaScript files. It's tricky to architect, but I think Parcel is good precedent here. We will likely be able to do a lot more sophisticated things with our understandings of cross-language boundaries.
Everything is hoisted into the same scope, similar to Rollup.
Yep. That's a requirement for code splitting. The ability to reference modules declared in other bundles. We can also make it work with our top-level scope too. |
Beta Was this translation helpful? Give feedback.
-
We bundled our project using "polymer-cli" but this took forever and it broke from time to time. So it would be good to see an bundler wich also supports html as a start.
Yes, but it the modules will only be loaded when configured, so the bundling should exclude them and leave them as seperatly loadable. So some references already loaded in the main app need to be removed from them, and some need to be included. |
Beta Was this translation helpful? Give feedback.
-
Would be interesting to know how to use this project in / for React Native. |
Beta Was this translation helpful? Give feedback.
-
I've a few questions when about how rome would work when it gets a bundler.
1.) Will rome only allow bundling of javascript, or will it also support a html file as a start?
2.) How will rome support javascript modules with cylic references?
3.) Will rome bundler support lazy loaded modules? so if I lazy load a javascript module (for example a plugin), but this references now bundled files? (So is it supported to bundle plugins as extra files)
Beta Was this translation helpful? Give feedback.
All reactions