Related plugins
Describe the bug
In development, components with <script setup> and inline template have a render property, but it's absent in production.
Reproduction
https://stackblitz.com/edit/vitejs-vite-vo3ncylb?file=src%2FApp.vue&terminal=dev
Steps to reproduce
- Run
npx vite. You'll see "Component" in the preview pane
- Create a new terminal
- Run
npx vite build and then npx vite preview
- Go to the new address and the preview pane is now blank
System Info
Used Package Manager
npm
Logs
No response
Validations
Related plugins
plugin-vue
plugin-vue-jsx
Describe the bug
In development, components with
<script setup>and inline template have arenderproperty, but it's absent in production.Reproduction
https://stackblitz.com/edit/vitejs-vite-vo3ncylb?file=src%2FApp.vue&terminal=dev
Steps to reproduce
npx vite. You'll see "Component" in the preview panenpx vite buildand thennpx vite previewSystem Info
Used Package Manager
npm
Logs
No response
Validations