@vitejs/plugin-vue boolean props with no value have wrong type with --mode production
and script setup
#5612
Closed
7 tasks done
Labels
Describe the bug
When creating a component with the
script setup
syntax and a boolean prop and accessing the prop results in different (and wrong) types when runningvite --mode production
vsvite
.This results in the following output using
vite
and using
vite --mode production
I have verified (see reproduction) that it's only the case for components using the
script setup
syntax and not the normalscript
tags.Reproduction
https://stackblitz.com/edit/vitejs-vite-2ehfh6
Running
vite --mode production
andvite
results in different output.System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: