Skip to content

Inconsistent output between development and production #659

@makedopamine

Description

@makedopamine

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions