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

ci: add size-limit #517

Merged
merged 1 commit into from
Dec 25, 2024
Merged

ci: add size-limit #517

merged 1 commit into from
Dec 25, 2024

Conversation

simonguo
Copy link
Member

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:

package.json Updates:

  • package.json: Added new scripts dist:pro and size to build the production bundle and check its size. Added dependencies @size-limit/file and size-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 for react and react-dom.

pnpm-lock.yaml Updates:

  • pnpm-lock.yaml: Added new dependencies and their versions, including @size-limit/file, size-limit, and other related packages like bytes-iec, chokidar, and tinyglobby. [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.

Copy link

vercel bot commented Dec 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rsuite-table ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 25, 2024 9:53am

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@simonguo simonguo merged commit e4e8b74 into next Dec 25, 2024
7 checks passed
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.

1 participant