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
I am trying to run a vite dev mode in an environment where order of query params can change in a middle layer which is out of my control but Vite's output seems to be dependent on the order of its query params when it shouldn't be the case.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Related plugins
plugin-vue
plugin-vue-jsx
Describe the bug
I am trying to run a vite dev mode in an environment where order of query params can change in a middle layer which is out of my control but Vite's output seems to be dependent on the order of its query params when it shouldn't be the case.
Note: This happens in Vue 2's plugin as well.
Reproduction
https://github.com/skalidindi/vue3-vite-bug
Steps to reproduce
Run the following in the codebase
Then visit
http://localhost:3000/src/App.vue?vue&type=style&index=0&scoped=7a7a37b1&lang.css
This returns the right output of javascript
However, change the order of query params in this url and visit that url for example
This instead results in parsed css which the browser does not like because the file type from the request is document JS.
System Info
Used Package Manager
npm
Logs
N/A
Validations
The text was updated successfully, but these errors were encountered: