Skip to content

Commit

Permalink
fix: add back support for TS alias inference in monorepos
Browse files Browse the repository at this point in the history
  • Loading branch information
fwouts committed Jun 22, 2023
1 parent 299db75 commit 5666cb5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/src/vite/vite-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ export class ViteManager {
// If there is a top-level tsconfig.json, use it to infer aliases.
// While this is also done by vite-tsconfig-paths, it doesn't apply to CSS Modules and so on.
let tsConfig: Tsconfig | null = null;
const tsProjectFiles: string[] = [];
for (const potentialTsConfigFileName of [
"tsconfig.json",
"jsconfig.json",
Expand All @@ -156,7 +155,6 @@ export class ViteManager {
if (await fs.pathExists(potentialTsConfigFilePath)) {
tsConfig = loadTsconfig(potentialTsConfigFilePath) || null;
if (tsConfig) {
tsProjectFiles.push(potentialTsConfigFilePath);
break;
}
}
Expand Down Expand Up @@ -215,7 +213,6 @@ export class ViteManager {
const vitePlugins: Array<vite.PluginOption | vite.PluginOption[]> = [
viteTsconfigPaths({
root: this.options.rootDirPath,
projects: tsProjectFiles,
}),
virtualPlugin({
logger: this.options.logger,
Expand Down

0 comments on commit 5666cb5

Please sign in to comment.