Skip to content

Commit

Permalink
feat: remove experimental status of <script setup>
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jul 16, 2021
1 parent f596e00 commit 27104ea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/compiler-sfc/src/compileScript.ts
Expand Up @@ -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 = {
Expand Down

0 comments on commit 27104ea

Please sign in to comment.