2
0
Эх сурвалжийг харах

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

Evan You 1 жил өмнө
parent
commit
4d65b1584f

+ 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+$/)