chore: update new ref sugar warning link
This commit is contained in:
parent
bf2589b1f0
commit
9bee5ccea4
@ -548,7 +548,10 @@ export function compileScript(
|
|||||||
decl.init
|
decl.init
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
warnExperimental(`ref sugar`, 0 /* TODO */)
|
warnExperimental(
|
||||||
|
`ref sugar`,
|
||||||
|
`https://github.com/vuejs/rfcs/discussions/369`
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const callee = (decl.init.callee as Identifier).name
|
const callee = (decl.init.callee as Identifier).name
|
||||||
|
@ -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
|
// eslint-disable-next-line
|
||||||
if (typeof window !== 'undefined') {
|
if (typeof window !== 'undefined') {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
warnOnce(
|
warnOnce(
|
||||||
`${feature} is still an experimental proposal.\n` +
|
`${feature} is still an experimental proposal.\n` +
|
||||||
`Follow its status at https://github.com/vuejs/rfcs/pull/${rfcId}.`
|
`Follow its status at ${url}.`
|
||||||
)
|
)
|
||||||
warnOnce(
|
warnOnce(
|
||||||
`When using experimental features,\n` +
|
`When using experimental features,\n` +
|
||||||
|
Loading…
Reference in New Issue
Block a user