mirror of https://github.com/vuejs/core.git
chore: improve compileTemplate warn message (#11085)
This commit is contained in:
parent
edf263847e
commit
2c78f8921d
|
@ -191,11 +191,11 @@ function doCompileTemplate({
|
||||||
if (ssr && !ssrCssVars) {
|
if (ssr && !ssrCssVars) {
|
||||||
warnOnce(
|
warnOnce(
|
||||||
`compileTemplate is called with \`ssr: true\` but no ` +
|
`compileTemplate is called with \`ssr: true\` but no ` +
|
||||||
`corresponding \`cssVars\` option.\`.`,
|
`corresponding \`cssVars\` option.`,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
if (!id) {
|
if (!id) {
|
||||||
warnOnce(`compileTemplate now requires the \`id\` option.\`.`)
|
warnOnce(`compileTemplate now requires the \`id\` option.`)
|
||||||
id = ''
|
id = ''
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue