Skip to content

Don't pull in all of core-js with core (#1601) #2049

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

Closed
wants to merge 0 commits into from

Conversation

wegry
Copy link
Contributor

@wegry wegry commented Sep 15, 2020

Reasons for making this change

Two versions of core-js currently exist in my app because @rjsf/core pulls in @babel/runtime currently. There are two direct imports of core-js that I've opted to pull in pure imports for.

For the rationale of why library code shouldn't include polyfills, this comment
w3ctag/polyfills#6 (comment) explains my rationale. This is a breaking change though, if downstream folks were depending on @babel/runtime being around.

If this is related to existing tickets, include links to them as well. #1601

Checklist

  • I'm updating documentation
  • I'm adding or updating code
    • I've added and/or updated tests
    • I've updated docs if needed
  • I'm adding a new feature
    • I've updated the playground with an example use of the feature

@wegry
Copy link
Contributor Author

wegry commented Oct 6, 2020

Looks like removing core-js from the lib build here might patch up #1464 (comment) as well?

@jimmycallin
Copy link
Collaborator

i would like to see this get merged. this would solve issues with webpack 5 that i'm seeing due to the babel/runtime-corejs2 package being included.

@epicfaace
Copy link
Member

This is a breaking change though,

That seems ok, we can merge this and then release a v3.

@epicfaace
Copy link
Member

@wegry , what happened? Do we no longer want this PR?

@wegry
Copy link
Contributor Author

wegry commented Jan 29, 2021

@epicfaace I think I accidentally force pushed to this branch trying to get Netlify to build in #2196, and GitHub marked this as closed. Let me see if I can't patch it back up.

@wegry
Copy link
Contributor Author

wegry commented Jan 29, 2021

Looks like GitHub won't allow me to reopen the PR on with this branch. I'll spin up a new PR that links to this one.

@wegry wegry mentioned this pull request Jan 29, 2021
7 tasks
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

Successfully merging this pull request may close these issues.

3 participants