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) {
|
||||
warnOnce(
|
||||
`compileTemplate is called with \`ssr: true\` but no ` +
|
||||
`corresponding \`cssVars\` option.\`.`,
|
||||
`corresponding \`cssVars\` option.`,
|
||||
)
|
||||
}
|
||||
if (!id) {
|
||||
warnOnce(`compileTemplate now requires the \`id\` option.\`.`)
|
||||
warnOnce(`compileTemplate now requires the \`id\` option.`)
|
||||
id = ''
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue