Skip to content

Commit f9c9fe7

Browse files
fix(core): avoid useless template scoped (data-v-...) when (style) scope is not required
1 parent 6652b83 commit f9c9fe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ async function createSFCModule(source : string, filename : string, options : Opt
564564
scoped: hasScoped,
565565
id: scopeId,
566566
compilerOptions: {
567-
scopeId,
567+
scopeId: hasScoped ? scopeId : undefined,
568568
mode: 'module', // see: https://github.com/vuejs/vue-next/blob/15baaf14f025f6b1d46174c9713a2ec517741d0d/packages/compiler-core/src/options.ts#L160
569569
},
570570
// transformAssetUrls

0 commit comments

Comments
 (0)