Skip to content

Commit

Permalink
chore: update new ref sugar warning link
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Aug 4, 2021
1 parent bf2589b commit 9bee5cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion packages/compiler-sfc/src/compileScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/compiler-sfc/src/warn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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` +
Expand Down

0 comments on commit 9bee5cc

Please sign in to comment.