Open Robin-Hoodie opened 3 years ago
5.1.9
https://github.com/Robin-Hoodie/rollup-plugin-vue-treeshake-bug
Follow steps described in README of https://github.com/Robin-Hoodie/rollup-plugin-vue-treeshake-bug
rollup-plugin-vue produces tree-shakeable output when outputting an ESM bundle
All components are included in consumer project, regardless of whether or not it actually uses them
This issue is highly related to https://github.com/vuejs/rollup-plugin-vue/issues/344 .
I used the reproduction repo provided by @mgdodge to reproduce that this is still an issue for components that use class syntax
same problem
Any updates on this, or any way we can help?
Version
5.1.9
Reproduction link
https://github.com/Robin-Hoodie/rollup-plugin-vue-treeshake-bug
Steps to reproduce
Follow steps described in README of https://github.com/Robin-Hoodie/rollup-plugin-vue-treeshake-bug
What is expected?
rollup-plugin-vue produces tree-shakeable output when outputting an ESM bundle
What is actually happening?
All components are included in consumer project, regardless of whether or not it actually uses them
This issue is highly related to https://github.com/vuejs/rollup-plugin-vue/issues/344 .
I used the reproduction repo provided by @mgdodge to reproduce that this is still an issue for components that use class syntax