Skip to content

fix: tsr-split loading#189

Merged
birkskyum merged 2 commits intosolidjs:mainfrom
brenelz:fix-tsr-split-loading
Feb 19, 2025
Merged

fix: tsr-split loading#189
birkskyum merged 2 commits intosolidjs:mainfrom
brenelz:fix-tsr-split-loading

Conversation

@brenelz
Copy link
Contributor

@brenelz brenelz commented Feb 19, 2025

When loading files in tanstack solid router it can add a ?tsr-split=component to the filename which our plugin skips because of the query string.

I moved up the replace of the query string up higher so that it doesn't filter it out a couple lines below.

@changeset-bot
Copy link

changeset-bot bot commented Feb 19, 2025

🦋 Changeset detected

Latest commit: 2bc5802

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 19, 2025

Open in Stackblitz

npm i https://pkg.pr.new/vite-plugin-solid@189

commit: 2bc5802

Copy link

@edemaine edemaine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, that is an even simpler fix than my PR.

I'm hoping one of these, or a similar fix, gets merged. I'm glad to hear there are more settings where query strings are common and it's not just Civet. Solid is usually very fast to get updated, so fingers crossed...

@birkskyum
Copy link
Member

birkskyum commented Feb 19, 2025

Checked the solid-start test suites, and they passes with this

@birkskyum birkskyum merged commit 3da707e into solidjs:main Feb 19, 2025
2 checks passed
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