DEV Community


Discussion on: What is Tree Shaking?

blowsie profile image
Sam Blowes • Edited

You use vue as a reference here, but vue-cli doesn't support tree-shaking out of the box. Do you have any suggestions on how to achieve tree-shaking in a vue app or lib?

bboyakers profile image
Austin Akers Author • Edited

Webpack would be your best bet in my opinion! If you're using vueity, vueitfy-loader has automatic tree-shaking if I'm not mistaken :)