voidzero-dev / voidzero-dev/vite-plus
Support cache config for built-in vp build and vp pack
- 主要言語
- Rust
- スター
- 5.8k
- フォーク
- 262
- 平均マージ
- 1日 34分
- マージ済み PR(30日)
- 135
説明
https://github.com/voidzero-dev/vite-plus/pull/1992#discussion_r3503183576
## Problem
Today, Vite Task cache applies when a build is run as a task, for example `vpr build` or `vp run build`. A user can get cache hits from that task path, but direct built-in commands like `vp build` and `vp pack` do not use the task cache.
That makes the behavior hard to explain. `vpr build` can hit cache while `vp build` always runs, even though both may execute the same build command.
## Possible direction
Add a config option that lets projects enable caching for built-in `vp build` and `vp pack` commands. This would make the first-party command path and the task-runner path behave more consistently.
コントリビューションガイド
調査の方向性
Start by comparing the built-in `vp build` and `vp pack` command paths with task-based `vpr build` and `vp run build`, then read the cache behavior discussed in PR 1992. Identify where project configuration is loaded and where task caching is applied. Done means a documented config option enables cache hits for both built-in commands and makes their behavior consistent with the task paths.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- rust
- 領域
- build-system, cli, tooling
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100