Skip to content

Commit 27104ea

Browse files
committed
feat: remove experimental status of <script setup>
1 parent f596e00 commit 27104ea

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/compiler-sfc/src/compileScript.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,7 @@ export function compileScript(
123123
const enableRefSugar = !!options.refSugar
124124
const parseOnly = !!options.parseOnly
125125

126-
if (scriptSetup) {
127-
!parseOnly && warnExperimental(`<script setup>`, 227)
128-
} else if (parseOnly) {
126+
if (parseOnly && !scriptSetup) {
129127
// in parse-only mode, construct a fake script setup so we still perform
130128
// the full parse logic.
131129
scriptSetup = {

0 commit comments

Comments
 (0)