From 9bee5ccea479a740a8a6d782d6f601ea37cf81ad Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 4 Aug 2021 17:06:23 -0400 Subject: [PATCH] chore: update new ref sugar warning link --- packages/compiler-sfc/src/compileScript.ts | 5 ++++- packages/compiler-sfc/src/warn.ts | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/compiler-sfc/src/compileScript.ts b/packages/compiler-sfc/src/compileScript.ts index c6709475f..a3f86a3dd 100644 --- a/packages/compiler-sfc/src/compileScript.ts +++ b/packages/compiler-sfc/src/compileScript.ts @@ -548,7 +548,10 @@ export function compileScript( decl.init ) } else { - warnExperimental(`ref sugar`, 0 /* TODO */) + warnExperimental( + `ref sugar`, + `https://github.com/vuejs/rfcs/discussions/369` + ) } const callee = (decl.init.callee as Identifier).name diff --git a/packages/compiler-sfc/src/warn.ts b/packages/compiler-sfc/src/warn.ts index dd9d3b5aa..6efa419cd 100644 --- a/packages/compiler-sfc/src/warn.ts +++ b/packages/compiler-sfc/src/warn.ts @@ -15,14 +15,14 @@ export function warn(msg: string) { ) } -export function warnExperimental(feature: string, rfcId: number) { +export function warnExperimental(feature: string, url: string) { // eslint-disable-next-line if (typeof window !== 'undefined') { return } warnOnce( `${feature} is still an experimental proposal.\n` + - `Follow its status at https://github.com/vuejs/rfcs/pull/${rfcId}.` + `Follow its status at ${url}.` ) warnOnce( `When using experimental features,\n` +