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

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy