Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.

Commit 1a42be3

Browse files
committed
fix: Add scope ID only if scoped style is present
Fixes #75
1 parent f5b67aa commit 1a42be3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/assembler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ export function assembleFromSource(
335335
})}
336336
} : undefined
337337
/* scoped */
338-
const __vue_scope_id__ = ${e(hasScopedStyle) ? e(scopeId) : 'undefined'}
338+
const __vue_scope_id__ = ${hasScopedStyle ? e(scopeId) : 'undefined'}
339339
/* module identifier */
340340
const __vue_module_identifier__ = ${
341341
compiler.template.optimizeSSR ? e(scopeId) : 'undefined'

0 commit comments

Comments
 (0)