You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
babel detect
browerslist
config whenignoreBrowerslistConfig
andno targets
:https://github.com/babel/babel/blob/HEAD/packages/babel-helper-compilation-targets/src/index.ts#L197-L198
But, vite-plugin-legacy set
targets: 'defaults'
when not targets option in:https://github.com/vitejs/vite/blob/HEAD/packages/plugin-legacy/src/index.ts#L122-L123
So,
ignoreBrowserslistConfig
made no sence. This is the FIRST.Then, I developed vite-plugin-legacy locally, set
targets
tooptions.targets
here:https://github.com/vitejs/vite/blob/HEAD/packages/plugin-legacy/src/index.ts#L433-L434
and debug build with:
then I found that
babel
can't detectbrowserslist config
. I don't know whose problem this is.Reproduction
https://github.com/hemengke1997/vpl-ignoreBrowerslist-repro
Steps to reproduce
ignoreBrowerslist: true
, then check the size of distignoreBrowerslist: true
, the size is the sameSystem Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: