Skip to content

Deps optimization at build time did not tree-shaking #14106

@windsonR

Description

@windsonR

Describe the bug

When i using deps optimization at build time, looks like it was not tree-shaking

Reproduction

https://github.com/windsonR/my-vue-app

Steps to reproduce

In reproduction, i use ant-design-vue to reproduce this.

Run pnpm install then pnpm build

Then, in dist/index.*.js search AInput or ATable

System Info

System:
    OS: macOS 13.5
    CPU: (10) arm64 Apple M1 Pro
    Memory: 92.09 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.20.2 - ~/.n/bin/node
    Yarn: 1.22.19 - ~/.n/bin/yarn
    npm: 9.8.1 - ~/.n/bin/npm
    pnpm: 8.6.10 - ~/.n/bin/pnpm
  Browsers:
    Firefox Nightly: 118.0a1
    Safari: 16.6
  npmPackages:
    @vitejs/plugin-vue2: ^2.2.0 => 2.2.0 
    vite: ^4.4.5 => 4.4.5

Used Package Manager

pnpm

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions