Skip to content

Commit 7b2ff1e

Browse files
committed
chore: remove deprecated ref sugar warning
1 parent 526fa3b commit 7b2ff1e

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

packages/compiler-sfc/src/compileScript.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -505,21 +505,6 @@ export function compileScript(
505505

506506
// 2.2 process <script setup> body
507507
for (const node of scriptSetupAst.body) {
508-
// (Dropped) `ref: x` bindings
509-
// TODO remove when out of experimental
510-
if (
511-
node.type === 'LabeledStatement' &&
512-
node.label.name === 'ref' &&
513-
node.body.type === 'ExpressionStatement'
514-
) {
515-
ctx.error(
516-
`ref sugar using the label syntax was an experimental proposal and ` +
517-
`has been dropped based on community feedback. Please check out ` +
518-
`the new proposal at https://github.com/vuejs/rfcs/discussions/369`,
519-
node
520-
)
521-
}
522-
523508
if (node.type === 'ExpressionStatement') {
524509
const expr = unwrapTSNode(node.expression)
525510
// process `defineProps` and `defineEmit(s)` calls

packages/vue/ref-macros.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// TODO deprecated file - to be removed when out of experimental
1+
// TODO remove in 3.4
22
import './macros-global'

0 commit comments

Comments
 (0)