Skip to content

Commit 9bee5cc

Browse files
committed
chore: update new ref sugar warning link
1 parent bf2589b commit 9bee5cc

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/compiler-sfc/src/compileScript.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,10 @@ export function compileScript(
548548
decl.init
549549
)
550550
} else {
551-
warnExperimental(`ref sugar`, 0 /* TODO */)
551+
warnExperimental(
552+
`ref sugar`,
553+
`https://github.com/vuejs/rfcs/discussions/369`
554+
)
552555
}
553556

554557
const callee = (decl.init.callee as Identifier).name

packages/compiler-sfc/src/warn.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ export function warn(msg: string) {
1515
)
1616
}
1717

18-
export function warnExperimental(feature: string, rfcId: number) {
18+
export function warnExperimental(feature: string, url: string) {
1919
// eslint-disable-next-line
2020
if (typeof window !== 'undefined') {
2121
return
2222
}
2323
warnOnce(
2424
`${feature} is still an experimental proposal.\n` +
25-
`Follow its status at https://github.com/vuejs/rfcs/pull/${rfcId}.`
25+
`Follow its status at ${url}.`
2626
)
2727
warnOnce(
2828
`When using experimental features,\n` +

0 commit comments

Comments
 (0)