chore: improve compileTemplate warn message (#11085)

This commit is contained in:
No Two 2024-06-07 17:30:35 +08:00 committed by GitHub
parent edf263847e
commit 2c78f8921d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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 = ''
}