Skip to content
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

feat: Minify with terser #789

Merged
merged 4 commits into from
Feb 7, 2023
Merged

feat: Minify with terser #789

merged 4 commits into from
Feb 7, 2023

Conversation

PuruVJ
Copy link
Contributor

@PuruVJ PuruVJ commented Nov 29, 2022

Related to issue #742

This adds optional terser minification support by allowing minify: 'terser' and an optional terserOptions property in config.

Setting minify: 'terser' uses terser to minify, and emits the proper code and sourcemaps. I have used this on my package neodrag which has 2 modules, and it emits same sized outputs.

Gonna keep this as draft for now to figure out the API surface and potential bugs

@vercel
Copy link

vercel bot commented Nov 29, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
tsup ✅ Ready (Inspect) Visit Preview Nov 29, 2022 at 8:00PM (UTC)

@panoply
Copy link
Contributor

panoply commented Jan 7, 2023

Very cool.

@egoist egoist merged commit fdd4dfa into egoist:dev Feb 7, 2023
@github-actions
Copy link

github-actions bot commented Feb 7, 2023

🎉 This PR is included in version 6.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@PuruVJ
Copy link
Contributor Author

PuruVJ commented Feb 7, 2023

I forgot to tell, this option, when set to terser disables CSS minification. I haven't been able to get around to it 🤐

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants