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

build: remove react-scripts 4.0.3 resolution #3739

Merged
merged 4 commits into from
Aug 5, 2024
Merged

Conversation

superskip
Copy link
Contributor

@superskip superskip commented Aug 1, 2024

This pull request upgrades Capture app to use the latest version of react-scripts (5.0.1).

The main motivation behind doing this upgrade is that the new kotlin rule engine has difficulties "importing named exports from non EcmaScript modules" when using react-scripts 4.0.3.

One side effect of upgrading react-scripts is that the process object becomes inaccessible to Capture, except one property process.env, which gets injected with an explicit value during compilation. The other uses of the process object had to be removed.

Another side effect was that it enabled the app to make use of package export aliases, but apparently also requiring it to do so. Consequently a few explicitly given paths in the app had to be modified.

The changes in .eslintrc and .flowconfig were made to fix a couple of linter and flow errors related to import paths.

@superskip superskip requested a review from a team as a code owner August 1, 2024 09:54
Copy link
Contributor

@simonadomnisoru simonadomnisoru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! 🥳

@superskip superskip merged commit ac559fe into master Aug 5, 2024
43 checks passed
@superskip superskip deleted the upgrade-react-scripts branch August 5, 2024 15:35
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 100.71.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

3 participants