Skip to content

Normalize query-suffixed module ids in unplugin-macros#22

Open
schiller-manuel wants to merge 1 commit intodevongovett:mainfrom
schiller-manuel:normalize-id
Open

Normalize query-suffixed module ids in unplugin-macros#22
schiller-manuel wants to merge 1 commit intodevongovett:mainfrom
schiller-manuel:normalize-id

Conversation

@schiller-manuel
Copy link
Copy Markdown

Some tools pass query-suffixed module ids through transform hooks. TanStack Router is one example, generating ids like ?tsr-split=... for split route modules.

Normalize ids before extension checks and macro bookkeeping so query-suffixed .ts/.tsx modules are transformed correctly and asset tracking, invalidation, and source maps use the real file path.

see TanStack/router#6928

Some tools pass query-suffixed module ids through transform hooks.
TanStack Router is one example, generating ids like ?tsr-split=...
for split route modules.

Normalize ids before extension checks and macro bookkeeping so
query-suffixed .ts/.tsx modules are transformed correctly and
asset tracking, invalidation, and source maps use the real file path.
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.

1 participant