Importing .css file with sourceMappingURL in dynamic route causes the .map file to appear in params #4159
Labels
bug
Something isn't working
help wanted
PRs welcomed. The implementation details are unlikely to cause debate
p2-nice-to-have
SvelteKit cannot be used by a small number of people, quality of life improvements, etc.
vite
Milestone
Describe the bug
When importing a
.css
file that includes asourceMappingURL
in a Svelte Kit dynamic route, this causes the.map
file to appear in the dynamic route parameter when using the dev server.Reproduction
Create a new empty Svelte Kit project:
Create a new route with a dynamic parameter
stuff/[id]
:. └── routes └── stuff └── [id].svelte
Add this code to
[id].svelte
:Start the dev server:
Goto http://localhost:3000/stuff/hi. Save
[id].svelte
to see the issue in the logs.bootstrap-utilities.css.map
is being added to theparams
under theid
field.Logs
Server:
Client:
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: