-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert "Switch to fewest modules linking in dev." #2841
base: master
Are you sure you want to change the base?
Conversation
BundleMonFiles updated (1)
Unchanged files (7)
Total files change -30B 0% Final result: ✅ View report in BundleMon website ➡️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok testing this, but maybe @rpiaggio @toddburnside and @hugo-vrijswijk can chime in
I'll give it a try tomorrow, I think I played with it before, but only in fullLinkJS (once) where it didn't make much of a difference. Faster dev cycles would be nice though 😃 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's definitely worth testing!
I'll take it out for a spin |
I feel like it is a little slower on initial compile, but for incremental it is faster (which makes sense if it doesn't have to overwrite one giant fastLink file). I may have spoken too soon, I'm getting the following error when opening explore (after logging in to Orcid): |
I am getting the same error. But, on initial load not logged into Orcid (I don't think) |
If that error is legit — i.e. Scala.js is emitting different / broken code under a different split style, that's a pretty serious bug that we should report. |
I was testing out This article also mentions that for a very high number of modules, Vite can become slower: https://betterprogramming.pub/is-vite-really-faster-than-webpack-b414f6cc751c So, I think for now it is best to stay on It might help to make 1 bundle for all dependencies, and 1 for explore itself, but I don't know if that is an option. That way, dependencies could stay cached while the app bundle changes during development (similar to how webpack outputs |
THat's my experience too. Having FewestModules should make it possible to build less js files on |
Reverts #2229. Just to try! The changes in Scala.js 1.13.1 may have significantly improved the situation.