Skip to content

fix(plugin-vite): strip query from URLs before loading (#3895) - #3896

Open
mryall-mawson wants to merge 1 commit into
freshframework:mainfrom
mryall-mawson:fix/3895-vite-loader
Open

fix(plugin-vite): strip query from URLs before loading (#3895)#3896
mryall-mawson wants to merge 1 commit into
freshframework:mainfrom
mryall-mawson:fix/3895-vite-loader

Conversation

@mryall-mawson

Copy link
Copy Markdown

Enabling optimizeDeps in Vite config causes the Fresh dev server to fail with file-not-found errors. In this mode, modules URLs include a query string which is not stripped before being passed to Deno's loader, which interprets them as filenames.

See #3895 for the full bug description and reproduction.

This PR provides a simple test case using an existing fixture, and the fix in plugin-vite to strip the query strings before loading.

Note there are some existing test failures on main which this PR does not attempt to fix.

@mryall-mawson mryall-mawson changed the title fix: plugin-vite: strip query from URLs before loading (#3895) fix(plugin-vite): strip query from URLs before loading (#3895) Jul 30, 2026
@mryall-mawson
mryall-mawson force-pushed the fix/3895-vite-loader branch from 9d2def1 to fe855b5 Compare July 30, 2026 11:21
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