Skip to content

Commit

Permalink
fix(config): vite.config.ts can't import untranspiled ts files from o…
Browse files Browse the repository at this point in the history
…ther packages in the same monorepo (vitejs#5370)
  • Loading branch information
alamhubb committed Sep 19, 2024
1 parent b529b6f commit bd92f60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1641,6 +1641,10 @@ async function bundleConfigFile(
}
throw e
}
// not nod_modules dependency, compile it #5370
if (idFsPath && !isInNodeModules(idFsPath)) {
return
}
if (idFsPath && isImport) {
idFsPath = pathToFileURL(idFsPath).href
}
Expand Down

0 comments on commit bd92f60

Please sign in to comment.