]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: update new ref sugar warning link
authorEvan You <yyx990803@gmail.com>
Wed, 4 Aug 2021 21:06:23 +0000 (17:06 -0400)
committerEvan You <yyx990803@gmail.com>
Wed, 4 Aug 2021 21:06:23 +0000 (17:06 -0400)
packages/compiler-sfc/src/compileScript.ts
packages/compiler-sfc/src/warn.ts

index c6709475fb84b1c188f59f9c9951d5f8ca7e8977..a3f86a3dd96ac23ddbb96805328c19f9a4f0e0ad 100644 (file)
@@ -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
index dd9d3b5aa2e93e35a2dc75ad6656943116f360db..6efa419cda6c4793398519067c98d2ff9cd0e799 100644 (file)
@@ -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` +