Replies: 1 comment 2 replies
-
|
It would appear, that there is not interest in this proposal. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Intro
For about a year now, I've been using scala JS without a bundler, and I'm enjoying that experience. For me personally, it has kept scalaJS fun.
Predictably, it comes with some downsides vs the mature JS ecosystem - and I've written some of my own tooling https://github.com/Quafadas/live-server-scala-cli-js to cement the issues in my head.
For me the biggest remaining impediment is giving the browser as much help as possible caching assets. When I profiled my scalaJS app page load, CDN dependancies were ready in cca 100ms, the scala JS assets took another 1-2s despite my best efforts returning 304 codes for unchanging files with stable etags. As I understand it, vite circumvents this by fingerprinting assets to provide stable, unique URL's for each
component.<hash>.jsfile. That allows:Proposal:
After rolling this around in my head, I think Mill would be a great place to implement this (behind a feature flag:
jsFingerprintAssets)originalName.<hash>.jsSketch
Downstream, I hope it could help tooling / app deployment quite significantly.
Benefits
A sort of "vite-lite" experience.
Posting here for discussion. I know maintainer time is limited: I'm proposing to do the work, if there is support and willingness to review / merge. I've been in that part of mill's codebase before, so I think I have a reasonable shot of getting somewhere without being a big burden.
Any opinion / feedback? Could this be viable?
Beta Was this translation helpful? Give feedback.
All reactions