瀏覽代碼

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