The polyfill logic for modern mode and web components target has been refactored.
The final browser target is now calculated from the intersection of the user-specified browser target and the minimum browser versions that support modern mode / web component.
This means we can now drop many polyfills that are only used for some obsolete evergreen browsers if you are using the default browserslist target (
["> 1%", "last 2 versions", "not dead"]), which will greatly reduce the bundle size of modern mode / web component target.
🐛 Bug Fix