unplugin / unplugin-icons

🤹 Access thousands of icons as components on-demand universally.
https://www.npmjs.com/package/unplugin-icons
MIT License
3.79k stars 133 forks source link

vite3 output bundle much bigger than vite2 #255

Closed pwang2 closed 1 year ago

pwang2 commented 1 year ago

Describe the bug

Please see here https://github.com/pwang2/test-bundle

image

With a single icon, vite3 generates a bundle almost 6 times larger than vite2

Reproduction

https://github.com/pwang2/test-bundle

System Info

System:
    OS: macOS 13.0.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 9.14 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 19.0.1 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 8.19.2 - /usr/local/bin/npm
  Browsers:
    Chrome: 107.0.5304.121
    Safari: 16.1

But basicall, all OS.

Used Package Manager

npm

Validations

pwang2 commented 1 year ago

see explanation here: https://github.com/vitejs/vite/discussions/11162

Closing