forked from facebook/create-react-app
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The variable is also used in dev.
* Update getProcessForPort.js * Update getProcessForPort.js Co-authored-by: Zhou Peng <[email protected]> Co-authored-by: Dan Abramov <[email protected]>
Co-authored-by: Ian Schmitz <[email protected]>
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] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Including `%s/’/'/g` to avoid https://www.fileformat.info/info/unicode/char/2019/index.htm
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 <[email protected]>
…les libraries that contain sourcemaps (facebook#8227)
Co-authored-by: Brody McKee <[email protected]>
HumbertoL
changed the title
chore: upgrade to react-scripts 5
chore: upgrade to react-scripts 5.0.1
May 8, 2022
HumbertoL
force-pushed
the
upgrade-cra5-with-multi-bundle
branch
2 times, most recently
from
May 8, 2022 23:26
e3e9061
to
b0946fb
Compare
HumbertoL
force-pushed
the
upgrade-cra5-with-multi-bundle
branch
3 times, most recently
from
May 9, 2022 14:27
7cc3a23
to
c4ec476
Compare
HumbertoL
force-pushed
the
upgrade-cra5-with-multi-bundle
branch
from
May 9, 2022 14:31
c4ec476
to
e57e07e
Compare
m2mathew
approved these changes
May 13, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙏
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
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.