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
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-vueto reproduce this.Run
pnpm installthenpnpm buildThen, in
dist/index.*.jssearchAInputorATableSystem 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.5Used Package Manager
pnpm
Logs
No response
Validations