-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Drop Jest polyfill for requestAnimationFrame #4129
Comments
I believe you meant As for the polyfills, |
Right but this is in the testing environment which will be node 6 or greater as indicated by the engines config in the package.json I linked to 😉 |
|
Ah, that makes sense. Whelp, in that case we could either:
I don't really care either way personally :) |
Personally Id like the polyfills moved to user land. I know it comes with learning curve but now that we have browserlist targeting in |
Resolved for next beta |
Sorry, the template didn't really apply here.
I just noticed that in master, react-scripts depends on jest@22.1.2. As of jest@22.0.0,
jest-environment-jsdom
upgraded tojsdom@11.4
which includes built-in support forrequestAnimationFrame
.I'm fairly confident that all that needs to happen here is to simply remove these lines:
create-react-app/packages/react-scripts/config/polyfills.js
Lines 26 to 30 in 75f3fcc
Oh, and remove the dependency:
create-react-app/packages/react-scripts/package.json
Line 57 in 75f3fcc
Oh, and while we're at it, if create-react-app is supporting node@>=6 then we can probably get rid of the
Object.assign
polyfill (and theobject-assign
dep) as well as the Promise polyfill (and thepromise
dep).That should leave the file pretty bare. Something like this I think:
The text was updated successfully, but these errors were encountered: