-
Notifications
You must be signed in to change notification settings - Fork 367
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
feat(builder): support buildCache.cacheDigest configuration #4560
Conversation
🦋 Changeset detectedLatest commit: 2a57c38 The changes in this PR will be included in the next version bump. This PR includes changesets to release 253 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #4560 +/- ##
==========================================
- Coverage 57.59% 53.73% -3.87%
==========================================
Files 672 654 -18
Lines 17794 17961 +167
Branches 3876 4140 +264
==========================================
- Hits 10249 9651 -598
- Misses 6934 7652 +718
- Partials 611 658 +47 ☔ View full report in Codecov by Sentry. |
packages/builder/builder/tests/plugins/__snapshots__/cache.test.ts.snap
Outdated
Show resolved
Hide resolved
packages/document/builder-doc/docs/en/config/performance/buildCache.md
Outdated
Show resolved
Hide resolved
packages/document/builder-doc/docs/en/config/performance/buildCache.md
Outdated
Show resolved
Hide resolved
…o hotfix/build-cache-deps
Summary
🤖 Generated by Copilot at c6b10ab
This pull request adds a new feature to the
@modern-js/builder
package that allows users to customize the build cache name based on environment variables or other factors. The feature is implemented by adding a newcacheDigest
option to thebuilderPluginCache
and theBuildCacheOptions
type. The feature is documented in both English and Chinese versions of thebuildCache.md
file. The feature is tested by adding unit tests and end-to-end tests with different scenarios. The pull request also updates the changelog and the version of the package.Details
🤖 Generated by Copilot at c6b10ab
cacheDigest
option toBuildCacheOptions
type and document it in English and Chinese (link, link, link, link, link)cacheDigest
logic in webpack plugin and helper function (link, link, link, link)cacheDigest
feature with unit test and end-to-end test cases (link, link, link, link, link)@modern-js/builder
package (link)Related Issue
Checklist
pnpm run change
.