vite-plugin-vue icon indicating copy to clipboard operation
vite-plugin-vue copied to clipboard

Inconsistent output between development and production

Open makedopamine opened this issue 3 months ago • 1 comments

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

  1. Run npx vite. You'll see "Component" in the preview pane
  2. Create a new terminal
  3. Run npx vite build and then npx vite preview
  4. Go to the new address and the preview pane is now blank

System Info

--

Used Package Manager

npm

Logs

No response

Validations

makedopamine avatar Sep 02 '25 14:09 makedopamine

I guess the render property is not part of the public API. refs #11

sapphi-red avatar Sep 08 '25 02:09 sapphi-red