Skip to content

Reduced Scala.js bundle size for scala-java-time only#4500

Merged
adamw merged 2 commits into
softwaremill:masterfrom
j-mie6:lazy-time
Apr 9, 2025
Merged

Reduced Scala.js bundle size for scala-java-time only#4500
adamw merged 2 commits into
softwaremill:masterfrom
j-mie6:lazy-time

Conversation

@j-mie6

@j-mie6 j-mie6 commented Apr 8, 2025

Copy link
Copy Markdown
Contributor

Follow up from #4461, but only focusing on the scala-java-time aspect.

@j-mie6

j-mie6 commented Apr 8, 2025

Copy link
Copy Markdown
Contributor Author

@adamw as requested

@adamw adamw merged commit 335e2a1 into softwaremill:master Apr 9, 2025
@adamw

adamw commented Apr 9, 2025

Copy link
Copy Markdown
Member

Thank you!

@j-mie6

j-mie6 commented Apr 12, 2025

Copy link
Copy Markdown
Contributor Author

damn, looks like I must've missed something, this didn't have the same bundle-size drop as the full version did; I'll have to take another look through. scala-java-time is still being retained by the results of this PR somehow.

@j-mie6 j-mie6 mentioned this pull request Apr 12, 2025
adamw pushed a commit that referenced this pull request Apr 12, 2025
`CookieWithMeta` also pulls in `scala-java-time`, so these two `Codec`s
have also been made lazy as per #4500. I've confirmed this is the
minimal set to avoid the dependency entirely, saving a full 1.12MB of
bundle size (a further ~0.4MB can be saved on other codecs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants