Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider removing polyfill #30

Open
cpvalente opened this issue Sep 20, 2022 · 0 comments
Open

Consider removing polyfill #30

cpvalente opened this issue Sep 20, 2022 · 0 comments

Comments

@cpvalente
Copy link

Hi,

I am here following up on an issue where I am migrating a CRA codebase to VITE.

It seems that there is an issue with rollup and the Resize Observer polyfill used.
TypeError: ResizeObserver constructor: 'new' is required
This has been reported in other libraries that use the polyfill and the answer has normally been to remove the polyfill.

Currently ResizeObserver API reaches 94.18% of the browsers.
No code changes needed other than removing the polyfill import

Happy to create a PR if you would like to move this forward

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant