Commit 6a23db4
feat(config): add static vite config extraction to avoid NAPI for
Add a new `vite_static_config` crate that uses oxc_parser to statically
extract JSON-serializable fields from vite.config.* files without needing
a Node.js runtime. The `VitePlusConfigLoader` now tries static extraction
first for the `run` config and falls back to NAPI only when needed.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>run config1 parent 740e7b0 commit 6a23db4
6 files changed
Lines changed: 821 additions & 0 deletions
File tree
- crates/vite_static_config
- src
- packages/cli/binding
- src
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments