Skip to content

Commit e8f3c78

Browse files
authored
fix: correctly handle explicit ts config file (#2515)
1 parent b3b3c01 commit e8f3c78

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/vite/src/node/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ export async function loadConfigFromFile(
611611
if (configFile) {
612612
// explicit config path is always resolved from cwd
613613
resolvedPath = path.resolve(configFile)
614+
isTS = configFile.endsWith('.ts')
614615
} else {
615616
// implicit config file loaded from inline root (if present)
616617
// otherwise from cwd

0 commit comments

Comments
 (0)