We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
vapor
1 parent b2259a5 commit cef446aCopy full SHA for cef446a
packages/compiler-sfc/src/parse.ts
@@ -186,6 +186,7 @@ export function parse(
186
source,
187
false,
188
) as SFCTemplateBlock)
189
+ descriptor.vapor ||= !!templateBlock.attrs.vapor
190
191
if (!templateBlock.attrs.src) {
192
templateBlock.ast = createRoot(node.children, source)
@@ -210,11 +211,8 @@ export function parse(
210
211
break
212
case 'script':
213
const scriptBlock = createBlock(node, source, pad) as SFCScriptBlock
214
+ descriptor.vapor ||= !!scriptBlock.attrs.vapor
215
const isSetup = !!scriptBlock.attrs.setup
- const isVapor = !!scriptBlock.attrs.vapor
- if (isVapor) {
216
- descriptor.vapor = true
217
- }
218
if (isSetup && !descriptor.scriptSetup) {
219
descriptor.scriptSetup = scriptBlock
220
0 commit comments