Skip to content

Commit 0f49faa

Browse files
branchseerclaude
andcommitted
fix(static-config): correct permalink line ranges, explain no oxc_resolver
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent dc69f48 commit 0f49faa

File tree

1 file changed

+6
-2
lines changed
  • crates/vite_static_config/src

1 file changed

+6
-2
lines changed

crates/vite_static_config/src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ use rustc_hash::FxHashMap;
1616
use vite_path::AbsolutePath;
1717

1818
/// Config file names to try, in priority order.
19-
/// This matches Vite's `DEFAULT_CONFIG_FILES` order:
20-
/// https://github.com/vitejs/vite/blob/25227bbdc7de0ed07cf7bdc9a1a733e3a9a132bc/packages/vite/src/node/constants.ts#L119-L126
19+
/// This matches Vite's `DEFAULT_CONFIG_FILES`:
20+
/// https://github.com/vitejs/vite/blob/25227bbdc7de0ed07cf7bdc9a1a733e3a9a132bc/packages/vite/src/node/constants.ts#L98-L105
21+
///
22+
/// Vite resolves config files by iterating this list and checking `fs.existsSync` — no
23+
/// module resolution involved, so oxc_resolver is not needed here:
24+
/// https://github.com/vitejs/vite/blob/25227bbdc7de0ed07cf7bdc9a1a733e3a9a132bc/packages/vite/src/node/config.ts#L2231-L2237
2125
const CONFIG_FILE_NAMES: &[&str] = &[
2226
"vite.config.js",
2327
"vite.config.mjs",

0 commit comments

Comments
 (0)