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

Support for CRA 5 #332

Merged
merged 1 commit into from Oct 12, 2021
Merged

Support for CRA 5 #332

merged 1 commit into from Oct 12, 2021

Conversation

bkrausz
Copy link

@bkrausz bkrausz commented Oct 7, 2021

Fixes #313

Doesn't update the peer dependency, but this does allow craco to work with react-scripts 5. I have not tested every feature so it's possible there's some config-munging that expects a now-changed format.

Right now this isn't backwards compatible with react-scripts 4, as I needed to use Jest 27's async transformations (it seems globals are now getting cleared). I can look into adding conditional support based on the Jest version, but putting this up now in case others want to play with it.

@patricklafrance
Copy link
Contributor

Thank you for the PR @bkrausz, very appreciated!

I have a very busy week, I'll get back at you this week-end :)

@patricklafrance
Copy link
Contributor

Since it's not backward compatible and CRA5 is in alpha I prefer not merging anything which is not backward compatible into master. I created a support-cra5 branch. Could you please update your PR to merge into that branch instead?

Thank you,

Patrick

@bkrausz bkrausz changed the base branch from master to support-cra5 October 11, 2021 20:20
@patricklafrance patricklafrance merged commit 3649bf1 into dilanx:support-cra5 Oct 12, 2021
@msalahz
Copy link

msalahz commented Oct 19, 2021

Can we create an alpha release for this? I need to utilize it.

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.

[Request] Support CRA 5
3 participants