File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
crates/vite_static_config/src Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,12 @@ use rustc_hash::FxHashMap;
1616use 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
2125const CONFIG_FILE_NAMES : & [ & str ] = & [
2226 "vite.config.js" ,
2327 "vite.config.mjs" ,
You can’t perform that action at this time.
0 commit comments