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 1945d50 commit c7102b3Copy full SHA for c7102b3
src/compiler/compile/Component.ts
@@ -1138,15 +1138,15 @@ export default class Component {
1138
}
1139
1140
1141
- if (inserts.length > 0) {
1142
- parent[key].splice(index + 1, 0, ...inserts);
1143
- }
1144
- if (props.length > 0) {
1145
- parent[key].splice(index + 1, 0, b`let { ${props} } = $$props;`);
1146
1147
- if (node.declarations.length == 0) {
1148
- parent[key].splice(index, 1);
1149
+ if (inserts.length > 0) {
+ parent[key].splice(index + 1, 0, ...inserts);
+ }
+ if (props.length > 0) {
+ parent[key].splice(index + 1, 0, b`let { ${props} } = $$props;`);
+ if (node.declarations.length == 0) {
+ parent[key].splice(index, 1);
1150
1151
return this.skip();
1152
0 commit comments