feat(config): deprecate `cache.dir` option
Description
Closes #3272
This PR removes the cache.dir option and reuses Vite's cacheDir to save cache.
Related
- https://github.com/vitest-dev/vitest/pull/4036
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
- [x] It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed.
- [ ] Ideally, include a test that fails without this PR but passes with it.
- [x] Please, don't make changes to
pnpm-lock.yamlunless you introduce a new test example.
Tests
- [ ] Run the tests with
pnpm test:ci.
Documentation
- [x] If you introduce new functionality, document it. You can run documentation with
pnpm run docscommand.
Changesets
- [x] Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with
feat:,fix:,perf:,docs:, orchore:.
Deploy Preview for fastidious-cascaron-4ded94 ready!
| Name | Link |
|---|---|
| Latest commit | 8af373b7c8a066362b91de37736f00cfd89abfd6 |
| Latest deploy log | https://app.netlify.com/sites/fastidious-cascaron-4ded94/deploys/65f3fecb5edb86000821e512 |
| Deploy Preview | https://deploy-preview-5229--fastidious-cascaron-4ded94.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Deprecating is not a breaking change as long as it's still resolved.
Deprecating is not a breaking change as long as it's still resolved.
Aha...thanks for clarifying! As you said it's still resolved, do I need to handle cache.dir in resolving config? Like assigning Vite's cacheDir as cache.dir if it exists?
Deprecating is not a breaking change as long as it's still resolved.
Aha...thanks for clarifying! As you said it's still resolved, do I need to handle
cache.dirin resolving config? Like assigning Vite'scacheDirascache.dirif it exists?
Yes, I would expect cache.dir to affect the directory somehow until the option is removed completely in the next major.