]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
feat: remove experimental status of `<script setup>`
authorEvan You <yyx990803@gmail.com>
Wed, 14 Jul 2021 16:07:55 +0000 (12:07 -0400)
committerEvan You <yyx990803@gmail.com>
Fri, 16 Jul 2021 18:30:49 +0000 (14:30 -0400)
packages/compiler-sfc/src/compileScript.ts

index 6d1b37e66820c31d1d0f86c31c697033c39d1f8a..175068d1c49b5578232f87732fb849bc50221952 100644 (file)
@@ -123,9 +123,7 @@ export function compileScript(
   const enableRefSugar = !!options.refSugar
   const parseOnly = !!options.parseOnly
 
-  if (scriptSetup) {
-    !parseOnly && warnExperimental(`<script setup>`, 227)
-  } else if (parseOnly) {
+  if (parseOnly && !scriptSetup) {
     // in parse-only mode, construct a fake script setup so we still perform
     // the full parse logic.
     scriptSetup = {