Răsfoiți Sursa

wip(vapor): match vapor internal flag generated by compiler-sfc with runtime

Evan You 1 an în urmă
părinte
comite
4d65b1584f
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      packages/compiler-sfc/src/compileScript.ts

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

@@ -943,7 +943,7 @@ export function compileScript(
 
   let runtimeOptions = ``
   if (vapor) {
-    runtimeOptions += `\n  vapor: true,`
+    runtimeOptions += `\n  __vapor: true,`
   }
   if (!ctx.hasDefaultExportName && filename && filename !== DEFAULT_FILENAME) {
     const match = filename.match(/([^/\\]+)\.\w+$/)