We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57a4ab2 commit 346de0eCopy full SHA for 346de0e
packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/element.js
@@ -88,11 +88,9 @@ export function build_set_attributes(
88
element_id,
89
is_dynamic ? attributes_id : b.literal(null),
90
b.object(values),
91
- element.metadata.scoped && context.state.analysis.css.hash !== ''
92
- ? b.literal(context.state.analysis.css.hash)
93
- : is_custom_element
94
- ? b.null
95
- : false,
+ element.metadata.scoped &&
+ context.state.analysis.css.hash !== '' &&
+ b.literal(context.state.analysis.css.hash),
96
preserve_attribute_case,
97
is_custom_element,
98
is_ignored(element, 'hydration_attribute_changed') && b.true
0 commit comments