vite icon indicating copy to clipboard operation
vite copied to clipboard

3.1.0 regression: html attrs without quotes are broken

Open mustafa0x opened this issue 1 year ago • 0 comments

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

mustafa0x avatar Sep 14 '22 01:09 mustafa0x