v-click
doesn't work on a user-defined component in the build mode when the <template>
part has a top-level comment
#2097
Labels
Describe the bug
v-click
doesn't work on a user-defined component in the build mode,when the
<template>
part has a top-level comment like below,while it works in the dev mode.
Hello.vue
Hello2.vue
slides.md
CleanShot.2025-03-03.at.18.00.03.mp4
v-click
doesn't work.CleanShot.2025-03-03.at.18.02.41.mp4
v-click
works.These screenshots are from the repro repo: https://github.com/whitphx/slidev-vclick-problem-repro
Minimal reproduction
Repro repo: https://github.com/whitphx/slidev-vclick-problem-repro
Steps to reproduce the behavior:
pnpm build
npx serve -s dist
open http://localhost:3000/
Environment
The text was updated successfully, but these errors were encountered: