import.meta.url,
with a comma at the end causes the build not to take effect
#6978
Closed
7 tasks done
Labels
Describe the bug
Commas affect
import.meta.url
.The following code development environment is normal, but the compilation will lead to the invalidation of the whole page:
try:
npx vite build && npx vite preview
the page not work;
npx vite # page work
Normal after removing comma:
Reproduction
https://stackblitz.com/edit/vitejs-vite-xwbawm?file=main.js
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: