-
Notifications
You must be signed in to change notification settings - Fork 10
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
Maximum call stack size exceeded after fullOptJS
#119
Comments
Note: minifiers are not the same as optimizers. The ESBuild minifier reduces the 12 mb (!!) fetch demo to 6 mb. Meanwhile the closure compiler reduces it to 2 mb, albeit introducing the stack overflow problem. So I think the only way forward is to fix this in http4s core. |
Update: it seems the correct way to disable the closure compiler is like this. H/t Christoph. scalaJSLinkerConfig ~= { _.withClosureCompiler(false) } |
I've PRed a fix upstream in http4s/http4s#6211. Please try the snapshot (instructions in PR :) |
I can confirm the PR snapshot fixes the similar problem I experienced in #33 🎉 |
Reported by @buntec:
This sounds a lot like:
If we look at the reported line:
https://github.com/http4s/http4s/blob/v0.23.11/core/shared/src/main/scala/org/http4s/MediaType.scala#L255
It leads us to our old friend:
The current workaround is to disable GCC in
fullOptJS
with:I would like to explore alternative minimizers to GCC such as ESBuild:
https://esbuild.github.io/api/#minify
I also have a plan to fix #30 in http4s/http4s#5273. It is quite a bit of work to do binary-compatibly, but feasible I think.
The text was updated successfully, but these errors were encountered: