You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[transform-imports] Query-suffixed module IDs are skipped by the transform filter #151
The transform hook's ID filter (/\.[jt]sx?$/) skips JavaScript/TypeScript module IDs with query suffixes. TanStack Router's split routes use IDs such as route.tsx?tsr-split=component, so their imports remain pointed at the original barrel even when the plugin is configured.
In a Vite application using Tabler icons this leaves the LARGE_BARREL_MODULES warning and unnecessary barrel resolution in the client build. The issue can be reproduced with Rolldown alone; no TanStack, Vite, or icon library is required.
Minimal reproduction
In an empty directory:
npm init -y
npm install @rolldown/plugin-transform-imports@0.1.2 rolldown@1.2.9
# Save the following script as repro.mjs
node repro.mjs
Allow query suffixes in the transform hook ID filter, or match against the ID with its query removed. I tested a local filter change to /\.[jt]sx?(?:\?.*)?$/ in the original application and its client/server builds completed without the barrel warning. No patch is retained in the application.
A regression test for the query-suffixed entry above would cover the case.
Environment
macOS, arm64
Node.js 24.22.0
pnpm
@rolldown/plugin-transform-imports 0.1.2 (unmodified published package in the minimal reproduction)
rolldown 1.2.9
Searched existing issues for transform-imports query and transform-imports TanStack; no matching report found.
Activity