Преглед изворни кода

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

Evan You пре 1 година
родитељ
комит
4d65b1584f
1 измењених фајлова са 1 додато и 1 уклоњено
  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+$/)