Ver código fonte

chore: grammar in comments [ci skip]

Co-authored-by: maheng <maheng01@longfor.com>
HanochMa 4 anos atrás
pai
commit
7a1e6620bf
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      packages/compiler-sfc/src/compileScript.ts

+ 1 - 1
packages/compiler-sfc/src/compileScript.ts

@@ -575,7 +575,7 @@ export function compileScript(
         error(
           `\`${method}()\` in <script setup> cannot reference locally ` +
             `declared variables because it will be hoisted outside of the ` +
-            `setup() function. If your component options requires initialization ` +
+            `setup() function. If your component options require initialization ` +
             `in the module scope, use a separate normal <script> to export ` +
             `the options instead.`,
           id