File tree Expand file tree Collapse file tree 1 file changed +15
-12
lines changed
packages/svelte/src/compiler/phases/3-transform/client/visitors Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -105,9 +105,8 @@ export function RegularElement(node, context) {
105
105
106
106
for ( const attribute of node . attributes ) {
107
107
switch ( attribute . type ) {
108
- case 'SpreadAttribute' :
109
- attributes . push ( attribute ) ;
110
- has_spread = true ;
108
+ case 'AnimateDirective' :
109
+ other_directives . push ( attribute ) ;
111
110
break ;
112
111
113
112
case 'Attribute' :
@@ -124,28 +123,32 @@ export function RegularElement(node, context) {
124
123
class_directives . push ( attribute ) ;
125
124
break ;
126
125
127
- case 'StyleDirective' :
128
- style_directives . push ( attribute ) ;
129
- break ;
130
-
131
126
case 'LetDirective' :
132
127
// visit let directives before everything else, to set state
133
128
lets . push ( /** @type {ExpressionStatement } */ ( context . visit ( attribute ) ) ) ;
134
129
break ;
135
130
136
- case 'UseDirective' :
137
- has_use = true ;
131
+ case 'OnDirective' :
138
132
other_directives . push ( attribute ) ;
139
133
break ;
140
134
141
- case 'OnDirective' :
142
- other_directives . push ( attribute ) ;
135
+ case 'SpreadAttribute' :
136
+ attributes . push ( attribute ) ;
137
+ has_spread = true ;
138
+ break ;
139
+
140
+ case 'StyleDirective' :
141
+ style_directives . push ( attribute ) ;
143
142
break ;
144
143
145
- case 'AnimateDirective' :
146
144
case 'TransitionDirective' :
147
145
other_directives . push ( attribute ) ;
148
146
break ;
147
+
148
+ case 'UseDirective' :
149
+ has_use = true ;
150
+ other_directives . push ( attribute ) ;
151
+ break ;
149
152
}
150
153
}
151
154
You can’t perform that action at this time.
0 commit comments