We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
<script setup>
1 parent f596e00 commit 27104eaCopy full SHA for 27104ea
packages/compiler-sfc/src/compileScript.ts
@@ -123,9 +123,7 @@ export function compileScript(
123
const enableRefSugar = !!options.refSugar
124
const parseOnly = !!options.parseOnly
125
126
- if (scriptSetup) {
127
- !parseOnly && warnExperimental(`<script setup>`, 227)
128
- } else if (parseOnly) {
+ if (parseOnly && !scriptSetup) {
129
// in parse-only mode, construct a fake script setup so we still perform
130
// the full parse logic.
131
scriptSetup = {
0 commit comments