Skip to content

fix(core): preserve query in bundleless redirects#1707

Draft
Timeless0911 wants to merge 1 commit into
mainfrom
david/fix-bundleless-query-redirect
Draft

fix(core): preserve query in bundleless redirects#1707
Timeless0911 wants to merge 1 commit into
mainfrom
david/fix-bundleless-query-redirect

Conversation

@Timeless0911

Copy link
Copy Markdown
Contributor

Summary

This PR fixes bundleless redirect handling for JS and style imports with query strings. JS/TS redirects now preserve query and fragment parts while rewriting extensions, plain CSS keeps query strings when redirecting to emitted CSS files, and CSS Modules with query strings redirect to the emitted CSS asset instead of putting the query on the JS wrapper. Asset and SVGR query semantics are intentionally left out of this PR for a separate bundleless asset output design.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

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