-
-
Notifications
You must be signed in to change notification settings - Fork 725
Closed
Labels
bugSomething isn't workingSomething isn't workingpending triageThe issue/PR is currently untouched.The issue/PR is currently untouched.rsbuildrsbuild relatedrsbuild relatedteamThe issue/pr is created by the member of Rspack.The issue/pr is created by the member of Rspack.
Description
System Info
@rspack/core: 0.4.5
System:
OS: macOS 13.5.2
CPU: (10) arm64 Apple M1 Pro
Memory: 1.69 GB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
npm: 9.3.1 - ~/Library/Application Support/fnm/node-versions/v18.14.1/installation/bin/npm
pnpm: 8.8.0 - ~/Library/Application Support/fnm/node-versions/v18.14.1/installation/bin/pnpm
Browsers:
Chrome: 120.0.6099.129
Safari: 16.6
Details
I have tried to enable tree shaking in the Vant website, and found that the compile time increased from 3s to 23s.
- newTreeshaing: false:
- newTreeshaing: true:
Reproduce link
https://github.com/youzan/vant/tree/new_tree_shaking_1226
Reproduce Steps
Enable new tree shaking:
- git clone [email protected]:youzan/vant.git --branch new_tree_shaking_1226
- pnpm i
- pnpm dev
Disable new tree shaking:
- search
newTreeshaking: true
, change the value tofalse
. - pnpm i (to trigger rebuild)
- pnpm dev
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpending triageThe issue/PR is currently untouched.The issue/PR is currently untouched.rsbuildrsbuild relatedrsbuild relatedteamThe issue/pr is created by the member of Rspack.The issue/pr is created by the member of Rspack.