vite
vite copied to clipboard
3.1.0 regression: html attrs without quotes are broken
Describe the bug
Removing the quotes around src
's value (ie <script type="module" src=/main.js></script>
) causes vite to request main.jss
.
See the reproduction link (it's the exact vite.new template, except I removed the quotes around /main.js
). Add back the quotes and it will work. This is a regression (works fine in 3.0.9).
Reproduction
https://stackblitz.com/edit/vitejs-vite-blze7m?file=index.html
System Info
vite
Used Package Manager
pnpm
Logs
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] 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.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- [X] The provided reproduction is a minimal reproducible example of the bug.