Skip to content

Pin babel-preset-react-app to to core-js minor '3.5' version and add a peer dependency - #9021

Open
Mrman wants to merge 4 commits into
react:mainfrom
Mrman:core-js-config-change
Open

Pin babel-preset-react-app to to core-js minor '3.5' version and add a peer dependency#9021
Mrman wants to merge 4 commits into
react:mainfrom
Mrman:core-js-config-change

Conversation

@Mrman

@Mrman Mrman commented May 16, 2020

Copy link
Copy Markdown
  • Specified the minor version as recommended by core-js docs
  • Removed comment about core-js@3 upgrade
  • Added peer dependency on core-js from babel-preset-react-app.

Did some due dilligence and see react-error-overlay and react-scripts both directly depend on babel-preset-react-app but do not have a direct dependency on core-js. They do both have direct dependencies on react-app-polyfill that in turn depends on core-js.

From my testing:

  • npm doesn't complain about the peer depenency being unmet, guessing because it sees core-js in the dependency tree from react-app-polyfill
  • yarn does warn about the peer dependency being unmet, this seems more correct than npm's behaviour.

Forgive my ignorance but I don't know if babel-preset-react-app is expected to be usable without core-js? If not does that suggest react-scripts and react-error-overlay should have a direct dependency on core-js too?

closes #8875
closes #8779

@facebook-github-bot

Copy link
Copy Markdown

Hi @Mrman!

Thank you for your pull request and welcome to our community.We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.

In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot

Copy link
Copy Markdown

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Comment thread packages/babel-preset-react-app/dependencies.js Outdated
Comment thread packages/babel-preset-react-app/create.js Outdated
Mrman and others added 2 commits May 22, 2020 16:15
Co-authored-by: Minh Nguyen <minhnguyenxx@gmail.com>
Co-authored-by: Minh Nguyen <minhnguyenxx@gmail.com>
@Mrman Mrman changed the title Pin babel-preset-react-app to to core-js minor version and add a peer dependency Pin babel-preset-react-app to to core-js minor '3.5' version and add a peer dependency May 22, 2020
@Mrman

Mrman commented Jun 8, 2020

Copy link
Copy Markdown
Author

Now the peerDependency on core-js has been added, can this one go as part of the next milestone @ianschmitz? Think it would warrant a major version bump of babel-preset-react-app.

@stale

stale Bot commented Jul 11, 2020

Copy link
Copy Markdown

This pull request 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 stale Bot added the stale label Jul 11, 2020
@Mrman

Mrman commented Jul 12, 2020

Copy link
Copy Markdown
Author

PR is not stale, changes to my knowledge are good. Just needs review and release.

Can we get a breaking change and bug fix label added to this PR?

@stale stale Bot removed the stale label Jul 12, 2020
@stale

stale Bot commented Aug 16, 2020

Copy link
Copy Markdown

This pull request 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 stale Bot added the stale label Aug 16, 2020
@Mrman

Mrman commented Aug 17, 2020

Copy link
Copy Markdown
Author

PR is not stale :)

@stale stale Bot removed the stale label Aug 17, 2020
@Mrman

Mrman commented Sep 25, 2020

Copy link
Copy Markdown
Author

Have had to workaround this issue in another project. @ianschmitz / @iansu Is this something can be considered for the 4.1 milestone as a major version release to babel-preset-react-app?

@stale

stale Bot commented Dec 25, 2020

Copy link
Copy Markdown

This pull request 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 stale Bot added the stale label Dec 25, 2020
@stale stale Bot removed the stale label Jan 2, 2021
@Mrman

Mrman commented Jan 2, 2021

Copy link
Copy Markdown
Author

Resolved conflicts. PR is not stale.

@Semigradsky

Copy link
Copy Markdown

Maybe change version to 3.8? :)

@Mrman

Mrman commented Jan 22, 2021

Copy link
Copy Markdown
Author

Maybe change version to 3.8? :)

We can go to 3.6 since that is the latest minor version that react-app-polyfill is pulling in

@stale

stale Bot commented Jan 9, 2022

Copy link
Copy Markdown

This pull request 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 stale Bot added the stale label Jan 9, 2022
@Semigradsky

Copy link
Copy Markdown

As I see react-app-polyfill has "core-js": "^3.19.2", in dependencies, so we can change version to 3.19?

@stale stale Bot removed the stale label Jan 9, 2022
@xprommer

xprommer commented Jan 9, 2022

Copy link
Copy Markdown

I need corejs 3.17 for my project,
it would be great to update it to 3.19!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pin babel-preset-react-app to a minor core-js version as per core-js readme Stable ES features are not always polyfilled when needed

5 participants