Skip to content

docs: note Vite 8 native tsconfig paths support in README#217

Open
benpsnyder wants to merge 1 commit into
aleclarson:v7from
benpsnyder:docs/vite8-native-tsconfig-paths
Open

docs: note Vite 8 native tsconfig paths support in README#217
benpsnyder wants to merge 1 commit into
aleclarson:v7from
benpsnyder:docs/vite8-native-tsconfig-paths

Conversation

@benpsnyder

Copy link
Copy Markdown
Contributor

Adds a tip callout explaining that Vite 8+ supports tsconfig path resolution natively via resolve.tsconfigPaths, with guidance on when this plugin is still useful (Vite 5-7, lazy discovery, project references, fine-grained control).

Addresses #214.

Adds a tip callout explaining that Vite 8+ supports tsconfig path
resolution natively via resolve.tsconfigPaths, with guidance on when
this plugin is still useful (Vite 5-7, lazy discovery, project
references, fine-grained control).

Addresses aleclarson#214.
@aleclarson

Copy link
Copy Markdown
Owner

i'd like someone to confirm that these listed benefits are accurate:

[…] or if you need features like lazy discovery, project references, or fine-grained control over which tsconfigs are used

are we sure these are not also supported by Vite 8?

@psychobolt

psychobolt commented Jun 17, 2026

Copy link
Copy Markdown

@aleclarson Would it be possible to support . paths. That would add my value to using this plugin. For instance . prefix for folders e.g. .storybook/preview . This is working with v6, but in v7 not:

tsconfig.json:

   "paths": {
      ".storybook/*": ["./.storybook/*"],
      "*": ["./src/*"]
    }
Vite Internal server error: Failed to resolve import ".storybook/preview" from
│  "src/Button/Primary.story.ts". Does the file exist?
│  Plugin: vite:import-analysis

Would that be a issue with OXC Resolver? My workaround as referenced: rolldown/rolldown#8822

  resolve: {
      alias: { ".storybook/": fileURLToPath(new URL("./.storybook/", import.meta.url)) },
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants