]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
wip(vapor): match vapor internal flag generated by compiler-sfc with runtime
authorEvan You <evan@vuejs.org>
Mon, 3 Feb 2025 02:04:36 +0000 (10:04 +0800)
committerEvan You <evan@vuejs.org>
Mon, 3 Feb 2025 02:04:36 +0000 (10:04 +0800)
packages/compiler-sfc/src/compileScript.ts

index 5403788ed7f0e387fa6d5c1106843f7af91787a6..de096ced32162f65927424d9a16e48f0272747ac 100644 (file)
@@ -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+$/)