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

chore: upgrade to react-scripts 5.0.1 #8

Merged
merged 91 commits into from May 13, 2022

Conversation

HumbertoL
Copy link
Collaborator

@HumbertoL HumbertoL commented May 8, 2022

The intention of this PR is to upgrade react-scripts to update react-scripts to 5.0.1 while maintaining most of our customizations.

It's easiest to see the changes in this PR by comparing it to the upstream CRA: https://github.com/facebook/create-react-app/compare/main...callemall:upgrade-cra5-with-multi-bundle?expand=1

You can test this PR with r2d2 pr:

Note that we could not keep using the previous method of analyzing bundle sizes due to the fact that the webpack stats file was over 500mb. The plugin that we were using does not support reading files over 500mb with the CLI. The authors of this plugin are aware of the issue and do not plan to fix it: webpack-contrib/webpack-bundle-analyzer#492

As a workaround, I configured the plugin to instead generate a .html file that does not require the CLI to access.

Seen here is the error when the stats file is too large:

Screen Shot 2022-05-07 at 8 17 35 PM

As for the unused code plugin, the authors have no intention to support Webpack 5. tomchentw/unused-files-webpack-plugin#39

We can consider replacing this library with webpack-deadcode-plugin or another similar library in a future PR.

All other features work with this PR, including the generation of separate bundles.

ianschmitz and others added 30 commits March 2, 2021 10:07
The variable is also used in dev.
* Update getProcessForPort.js

* Update getProcessForPort.js

Co-authored-by: Zhou Peng <zpbrent@gmail.com>
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
Co-authored-by: Ian Schmitz <ianschmitz@gmail.com>
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This just fixes a shell snippet in the readme file for this plugin
Replace the Github home link with a link to the repo's main page or a link to the source (https://github.com/CodeByZach/pace/blob/master/pace.js)
Bump immer minor version to fix `Prototype Pollution` Security issue.
Co-authored-by: Brody McKee <mrmckeb@gmail.com>
Co-authored-by: Brody McKee <mrmckeb@gmail.com>
@HumbertoL HumbertoL changed the title chore: upgrade to react-scripts 5 chore: upgrade to react-scripts 5.0.1 May 8, 2022
@HumbertoL HumbertoL force-pushed the upgrade-cra5-with-multi-bundle branch 2 times, most recently from e3e9061 to b0946fb Compare May 8, 2022 23:26
@HumbertoL HumbertoL force-pushed the upgrade-cra5-with-multi-bundle branch 3 times, most recently from 7cc3a23 to c4ec476 Compare May 9, 2022 14:27
@HumbertoL HumbertoL force-pushed the upgrade-cra5-with-multi-bundle branch from c4ec476 to e57e07e Compare May 9, 2022 14:31
Copy link
Member

@m2mathew m2mathew left a comment

Choose a reason for hiding this comment

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

🙏

@m2mathew m2mathew merged commit 3132ed4 into master May 13, 2022
@m2mathew m2mathew deleted the upgrade-cra5-with-multi-bundle branch May 13, 2022 19:47
@HumbertoL HumbertoL restored the upgrade-cra5-with-multi-bundle branch June 4, 2022 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet