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
{{ message }}
Repository navigation
Stable ES features are not always polyfilled when needed #8875
core-js recommends specifying the minor version in the preset-env options: corejs: '3.6' to make sure stable features added in minor versions are correctly handled.
This description matches the behavior seen in this issue, and a local edit of the babel preset in node_modules/babel-preset-react-app/create.js confirmed that this change fixes the problem.
The easy solution is to change the preset-env option to specify the minor version, both 3.5 an 3.6 worked with String#matchAll when I tested it. Seeing as these settings are in different packages (react-app-polyfill and babel-preset-react-app) that don't depend on each other, I'm not sure what the best approach to keeping these versions in sync is.
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
Activity
skoging commentedon Apr 22, 2020
I believe the issue is a mismatch between the core-js dependency version:
^3.5.0and the babel preset-env optioncorejs: 3.core-js recommends specifying the minor version in the preset-env options:
corejs: '3.6'to make sure stable features added in minor versions are correctly handled.This description matches the behavior seen in this issue, and a local edit of the babel preset in
node_modules/babel-preset-react-app/create.jsconfirmed that this change fixes the problem.The easy solution is to change the preset-env option to specify the minor version, both
3.5an3.6worked withString#matchAllwhen I tested it. Seeing as these settings are in different packages (react-app-polyfill and babel-preset-react-app) that don't depend on each other, I'm not sure what the best approach to keeping these versions in sync is.Mrman commentedon Apr 24, 2020
This would close #8779 too :)
stale commentedon May 24, 2020
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
stale commentedon May 30, 2020
This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue.