unplugin / unplugin-auto-import

Auto import APIs on-demand for Vite, Webpack and Rollup
MIT License
3.31k stars 200 forks source link

In 0.18.0, viteOptimizeDeps was set to true, causing some variables that were previously automatically imported to appear undefined #513

Closed laterdayi closed 4 months ago

laterdayi commented 4 months ago

Describe the bug

In 0.18.0, viteOptimizeDeps was set to true, causing some variables that were previously automatically imported to appear undefined

Reproduction

*

System Info

In 0.18.0, viteOptimizeDeps was set to true, causing some variables that were previously automatically imported to appear undefined

Used Package Manager

npm

Validations

laterdayi commented 4 months ago

image


image


image

Before 0.18.0, it is normal, how should I modify it to make sure it works

antfu commented 4 months ago

We temporarily closed this due to the lack of enough information. We could not identify whether it was a bug or a userland misconfiguration with the given info. Please provide a minimal reproduction to reopen the issue. Thanks.

Why reproduction is required