-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
fails to correctly minify undici #708
Comments
Thanks a lot Julian for putting together a test case. I'm terribly swamped in work right now but will try to do my best to find out the culprit soon! |
git bisect shows ff4ee8b as the problem (28 May 2022), usage of template literals |
interesting, I wasn't aware this was a regression! Thank you so much for looking into it as always 😁 |
Specifically, it's not the fact that strings are converted to template literals, but that |
I've found it. See the end of https://tc39.es/ecma262/#sec-static-semantics-trv, it says that a a sequence of literal |
that's interesting! this means we get to shave off a few more bytes off our scripts 😆 |
Unfortunately, it's the reverse hehe. Now must keep the sequence |
Thanks! I'll run this on Monday! |
everything is fixed! thanks again!!!! |
I just ran into this in my last round of dependency updates, one of my project's dependencies pulled in
undici
and my tests started failing ^^;;I managed to isolate the issue to undici, and I put together the file that is not correctly minified (
main.out.js
).I also put together the minified version produced by
terser
, which runs on node correctly.I don't really know where to start looking for the problem, since the bundled
undici
is quite big, so it's hard to isolate where the problem would be 😅https://github.com/perrin4869/minify-undici-repro
Edit: I just confirmed that esbuild also manages to minify this correctly
The text was updated successfully, but these errors were encountered: