Support resolution for user based importers using allowImporterRe option (e.g. when using SSR vite-node or vite v6 environments API runner)#193
Closed
MDReal32 wants to merge 2 commits intoaleclarson:masterfrom
Closed
Conversation
• add allowImporterRe option to PluginOptions for regex-based importer filtering • prioritize allowImporterRe when computing importerExtRE in resolver logic • document new option with JSDoc explaining its use in large/segmented workspaces This allows consumers to restrict which modules can act as importers during path resolution using a single regular expression, enabling finer-grained control in complex monorepos or selectively-scoped setups.
1 task
renovate Bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Feb 8, 2026
| datasource | package | from | to | | ---------- | ------------------- | ----- | ----- | | npm | vite-tsconfig-paths | 6.0.5 | 6.1.0 | ## [v6.1.0](https://github.com/aleclarson/vite-tsconfig-paths/releases/tag/v6.1.0) ##### Features - **New `importerFilter` option:** Provides fine-grained control over which files should have their imports resolved by this plugin. (Closes [#175](aleclarson/vite-tsconfig-paths#175), [#193](aleclarson/vite-tsconfig-paths#193)) - **Ignore `.d.ts` overrides:** The plugin now ignores resolutions that point to `.d.ts` files, avoiding issues when `tsconfig` is used for opt-in type overrides. (Closes [#179](aleclarson/vite-tsconfig-paths#179), [#180](aleclarson/vite-tsconfig-paths#180)) ##### Performance - Hoisted regular expressions out of the hot path in the resolver for better performance. ##### Internal - Added `resolvedToDeclarationFile` event to the debug log file.
renovate Bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Feb 8, 2026
| datasource | package | from | to | | ---------- | ------------------- | ----- | ----- | | npm | vite-tsconfig-paths | 6.0.5 | 6.1.0 | ## [v6.1.0](https://github.com/aleclarson/vite-tsconfig-paths/releases/tag/v6.1.0) ##### Features - **New `importerFilter` option:** Provides fine-grained control over which files should have their imports resolved by this plugin. (Closes [#175](aleclarson/vite-tsconfig-paths#175), [#193](aleclarson/vite-tsconfig-paths#193)) - **Ignore `.d.ts` overrides:** The plugin now ignores resolutions that point to `.d.ts` files, avoiding issues when `tsconfig` is used for opt-in type overrides. (Closes [#179](aleclarson/vite-tsconfig-paths#179), [#180](aleclarson/vite-tsconfig-paths#180)) ##### Performance - Hoisted regular expressions out of the hot path in the resolver for better performance. ##### Internal - Added `resolvedToDeclarationFile` event to the debug log file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.