Переглянути джерело

fix(compiler-sfc): typo in experimental feature warnings (#8513)

Cédric Exbrayat 2 роки тому
батько
коміт
fd1a3f9599

+ 1 - 1
packages/compiler-sfc/src/script/defineModel.ts

@@ -30,7 +30,7 @@ export function processDefineModel(
 
 
   warnOnce(
   warnOnce(
     `This project is using defineModel(), which is an experimental ` +
     `This project is using defineModel(), which is an experimental ` +
-      ` feature. It may receive breaking changes or be removed in the future, so ` +
+      `feature. It may receive breaking changes or be removed in the future, so ` +
       `use at your own risk.\n` +
       `use at your own risk.\n` +
       `To stay updated, follow the RFC at https://github.com/vuejs/rfcs/discussions/503.`
       `To stay updated, follow the RFC at https://github.com/vuejs/rfcs/discussions/503.`
   )
   )

+ 1 - 1
packages/compiler-sfc/src/script/definePropsDestructure.ts

@@ -34,7 +34,7 @@ export function processPropsDestructure(
 
 
   warnOnce(
   warnOnce(
     `This project is using reactive props destructure, which is an experimental ` +
     `This project is using reactive props destructure, which is an experimental ` +
-      ` feature. It may receive breaking changes or be removed in the future, so ` +
+      `feature. It may receive breaking changes or be removed in the future, so ` +
       `use at your own risk.\n` +
       `use at your own risk.\n` +
       `To stay updated, follow the RFC at https://github.com/vuejs/rfcs/discussions/502.`
       `To stay updated, follow the RFC at https://github.com/vuejs/rfcs/discussions/502.`
   )
   )