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.
This pull request introduces a new workflow to monitor the size of the production build and integrates the necessary dependencies and configurations. The most important changes include adding a GitHub Actions workflow for size limit checks, updating the
package.json
with new scripts and dependencies, and configuring Webpack for production builds.GitHub Actions Workflow:
.github/workflows/size-limit.yml
: Added a new workflow to check the size limit of the production build on pull requests to themain
andnext
branches.package.json
Updates:package.json
: Added new scriptsdist:pro
andsize
to build the production bundle and check its size. Added dependencies@size-limit/file
andsize-limit
. [1] [2] [3] [4]Webpack Configuration:
webpack.build.config.js
: Added a new Webpack configuration file to build the production bundle with source maps and external dependencies forreact
andreact-dom
.pnpm-lock.yaml
Updates:pnpm-lock.yaml
: Added new dependencies and their versions, including@size-limit/file
,size-limit
, and other related packages likebytes-iec
,chokidar
, andtinyglobby
. [1] [2] [3] [4] [5] [6]These changes ensure that the size of the production build is monitored and kept within specified limits, improving the performance and maintainability of the project.