From: Evan You Date: Mon, 3 Feb 2025 02:04:36 +0000 (+0800) Subject: wip(vapor): match vapor internal flag generated by compiler-sfc with runtime X-Git-Tag: v3.6.0-alpha.1~16^2~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d65b1584f61c657e4d613679a70efdd1eec2c56;p=thirdparty%2Fvuejs%2Fcore.git wip(vapor): match vapor internal flag generated by compiler-sfc with runtime --- diff --git a/packages/compiler-sfc/src/compileScript.ts b/packages/compiler-sfc/src/compileScript.ts index 5403788ed7..de096ced32 100644 --- a/packages/compiler-sfc/src/compileScript.ts +++ b/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+$/)