The following cases doesn't work in dev, but works in build:
<script type="module" src="@/main.js"></script> <!-- alias that doesn't start with / -->
<script type="module" src="C:/absolute/path/to/main.js"></script> <!-- absolute path on Windows 1 -->
<script type="module" src="C:\absolute\path\to\main.js"></script> <!-- absolute path on Windows 2 -->
[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.
Describe the bug
The following cases doesn't work in dev, but works in build:
Reproduction
https://stackblitz.com/edit/vitejs-vite-bdueaz?file=vite.config.js,index.html&terminal=dev (for the first case)
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations