Apply suggestions from code review

pull/13435/head
Simon H 2 years ago committed by GitHub
parent 8ff706941d
commit 6c9707d420
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -746,8 +746,7 @@ export function analyze_component(root, source, options) {
);
if (
is_custom_element_node(element) &&
element.attributes.length === 1 &&
element.metadata.path
element.attributes.length === 1
) {
mark_subtree_dynamic(element.metadata.path);
}

@ -303,7 +303,7 @@ export namespace AST {
/** `true` if contains a SpreadAttribute */
has_spread: boolean;
scoped: boolean;
path?: SvelteNode[];
path: SvelteNode[];
};
}

Loading…
Cancel
Save