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

This commit is contained in:
Evan You 2025-02-03 10:04:36 +08:00
parent 3464620f12
commit 4d65b1584f
No known key found for this signature in database
GPG Key ID: 00E9AB7A6704CE0A
1 changed files with 1 additions and 1 deletions

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