Skip to content

Commit a7a17b6

Browse files
committed
tweak
1 parent 2bf0a22 commit a7a17b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,13 +539,14 @@ export function build_style_directives_object(style_directives, context) {
539539
let important_properties = [];
540540

541541
for (const directive of style_directives) {
542-
let expression =
542+
const expression =
543543
directive.value === true
544544
? build_getter({ name: directive.name, type: 'Identifier' }, context.state)
545545
: build_attribute_value(directive.value, context, (value, metadata) =>
546546
metadata.has_call ? get_expression_id(context.state, value) : value
547547
).value;
548548
const property = b.init(directive.name, expression);
549+
549550
if (directive.modifiers.includes('important')) {
550551
important_properties.push(property);
551552
} else {

0 commit comments

Comments
 (0)