Skip to content

Commit

Permalink
fix: correctly handle explicit ts config file (vitejs#2515)
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist authored Mar 15, 2021
1 parent b3b3c01 commit e8f3c78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ export async function loadConfigFromFile(
if (configFile) {
// explicit config path is always resolved from cwd
resolvedPath = path.resolve(configFile)
isTS = configFile.endsWith('.ts')
} else {
// implicit config file loaded from inline root (if present)
// otherwise from cwd
Expand Down

0 comments on commit e8f3c78

Please sign in to comment.