Async module loading / bundle splitting #23
Replies: 5 comments
-
From our experience here at Cloudflare, getting |
Beta Was this translation helpful? Give feedback.
-
@terinjokes in your opinion, what could be done to improve this? Any particular parts of integrating it that didn't feel right? |
Beta Was this translation helpful? Give feedback.
-
DescriptionHello all, I can break down what would be ideal — with some explanation as to why — then list out my experiences with using existing libraries and what deficiencies i ran into using them. This is a fairly complex issue so please bear with me, also please by no means take this as gospel. This is just meant to add some ideas about success criteria based on using this approach "in anger" while building a real app. success criteria
partition-bundle discoverypartition-bundle on github For me partition bundle works pretty well. It satisfies almost all of my success criteria save for splitting out page specific css files, but this could be a sheetify plugin concern. The example build file shows passing the main file, entry files as well as a url for local and deployed loading of files with the bundled loadjs factor-bundle discoveryfactor-bundle on github However you would need to come up with your own loader which might be a good idea in that it separates concerns, but it does make it a non-viable option out of the box. Another issue i ran into was it didn't put files into a main entry file with multiple other entry points. In my experience it only separated out shared modules into a common bundle. For me it would be better to have one file that manages common code as well as loading other externalized modules. Anyways, there are some thoughts, hopefully they help. |
Beta Was this translation helpful? Give feedback.
-
Migrated this open issue from #6 to https://github.com/orgs/browserify/discussions/23. No action required |
Beta Was this translation helpful? Give feedback.
-
Is anything here still relevant? Please close if not relevant. |
Beta Was this translation helpful? Give feedback.
-
As per https://github.com/orgs/browserify/discussions/22:
Input on the topic would be greatly appreciated!
cc/ @kristoferjoseph @brianleroux
Beta Was this translation helpful? Give feedback.
All reactions