Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

ESM output of vue class components not tree-shakeable in webpack #431

Open
Robin-Hoodie opened this issue Feb 22, 2021 · 2 comments
Open

Comments

@Robin-Hoodie
Copy link

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 #344 .

I used the reproduction repo provided by @mgdodge to reproduce that this is still an issue for components that use class syntax

@youlinaa
Copy link

same problem

@Robin-Hoodie
Copy link
Author

Any updates on this, or any way we can help?

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

No branches or pull requests

2 participants