File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
packages/svelte/src/compiler/phases/3-transform/server/visitors/shared Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ export function build_element_attributes(node, context) {
8686 } else if ( attribute . name !== 'defaultValue' && attribute . name !== 'defaultChecked' ) {
8787 if ( attribute . name === 'class' ) {
8888 class_index = attributes . length ;
89+
8990 if ( attribute . metadata . is_dynamic_class ) {
9091 attributes . push ( {
9192 ...attribute ,
@@ -98,11 +99,14 @@ export function build_element_attributes(node, context) {
9899 )
99100 }
100101 } ) ;
102+ } else {
103+ attributes . push ( attribute ) ;
101104 }
102105 } else {
103106 if ( attribute . name === 'style' ) {
104107 style_index = attributes . length ;
105108 }
109+
106110 attributes . push ( attribute ) ;
107111 }
108112 }
You can’t perform that action at this time.
0 commit comments