Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.
This repository was 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

Description

@Robin-Hoodie

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions