Prechádzať zdrojové kódy

chore: improve compileTemplate warn message (#11085)

No Two 2 rokov pred
rodič
commit
2c78f8921d

+ 2 - 2
packages/compiler-sfc/src/compileTemplate.ts

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