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
I'm using plugin-legacy to add polyfill for modern browsers. However, the polyfills used are always the same no matter what target or browserslist I set.
Then I add structuredClone method in main.js. Unfortunately, web.structured-clone is not added by plugin. It seems that what method I use in source code does not affect modernPolyfills, either.
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 https://github.com/vuejs/core instead.
Describe the bug
I'm using plugin-legacy to add polyfill for modern browsers. However, the polyfills used are always the same no matter what
target
orbrowserslist
I set.Then I add
structuredClone
method in main.js. Unfortunately,web.structured-clone
is not added by plugin. It seems that what method I use in source code does not affect modernPolyfills, either.I tried both 1.8.2 and 2.0.0-alpha.1
Reproduction
https://stackblitz.com/edit/vitejs-vite-gsrtkm
System Info
Used Package Manager
npm
Logs
Validations
The text was updated successfully, but these errors were encountered: