-
Notifications
You must be signed in to change notification settings - Fork 4
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
Move to Terser from UglifyJS #51
Comments
@mi2oon that's also a good one 👍 I think we may just make this switch alongside with the transition to the upcoming webpack 5 release. |
@racse1 Alright, let's wait for the v5. 👍 However, I've already done some pref on existing projects and didn't see a huge difference 🍷 If some do wishes to test it out, you can simply do that be addeding the following to your
|
I think the huge difference comes when you don't compile for IE11. I'm currently working out a way to support separate bundles for IE. Haven't figured the best way yet though, looks a bit messy when you have too much webpack configs 😄
@mi2oon yeah, you're right. They use it by default nowadays (when you use kind of empty config with |
@racse1 Wow, I've been looking into that too and haven't been able to find a good way. But I hope we can get a non messy version. It's a bit sad to see the code getting transpiled to the lowest common denominator. ⚫️
@racse1 I didn't know exactly when they where using it. But nice, perhaps we should just switch before v5 as it's not that hard. I can create a PR 🎟 |
Hey @mi2oon, sorry, completely missed a couple of your last comments. I've got some updates on IE 11 thing, looks pretty good with webpack-merge. I'll follow up with the details a bit later (perhaps a separate issue). Regarding Terser, cool, looking forward 😀 I think we can just remove: And we're good to go 😉 |
Fixed in #55. |
Why choose Terser? uglify-es is no longer maintained and uglify-js does not support ES6+. Also it has potential speed improvements(pref) and webpack team is already using it.
Any thoughts @kraftvaerk/frontend?
The text was updated successfully, but these errors were encountered: