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

Minify ESM bundle #112

Merged
merged 1 commit into from
Jan 18, 2022
Merged

Minify ESM bundle #112

merged 1 commit into from
Jan 18, 2022

Conversation

Fry98
Copy link
Contributor

@Fry98 Fry98 commented Dec 17, 2021

Since vite in library mode doesn't minify outputs in the ESM format anymore (ref vuejs/vue-next#2860), petite-vue's latest ESM bundle is now unminified on all CDNs (example). As far as I can tell, there shouldn't be any problems with tree-shaking in our particular case so I updated the config to minify all build outputs once again.

@Fry98 Fry98 changed the title Minify ES bundle Minify ESM bundle Dec 17, 2021
@yyx990803
Copy link
Member

yyx990803 commented Jan 18, 2022

esbuild minification is a little bit worse than terser but this will do for now.

We may add a flag to force minify es builds in vite.

@yyx990803 yyx990803 merged commit 0bf09b7 into vuejs:main Jan 18, 2022
@Fry98 Fry98 deleted the terser branch January 18, 2022 16:25
@Fry98 Fry98 restored the terser branch January 18, 2022 16:25
@Fry98 Fry98 deleted the terser branch January 18, 2022 16:26
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