chore: warnings for ref transform

This commit is contained in:
Evan You
2021-08-24 10:26:38 -04:00
parent 8f1101c498
commit 586ec51c49
3 changed files with 70 additions and 45 deletions

View File

@@ -14,18 +14,3 @@ export function warn(msg: string) {
`\x1b[1m\x1b[33m[@vue/compiler-sfc]\x1b[0m\x1b[33m ${msg}\x1b[0m\n`
)
}
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 ${url}.`
)
warnOnce(
`When using experimental features,\n` +
`it is recommended to pin your vue dependencies to exact versions to avoid breakage.`
)
}