Skip to content

Commit

Permalink
fix: rm import prefix when id svelte comps
Browse files Browse the repository at this point in the history
  • Loading branch information
tcmhoang committed May 1, 2024
1 parent c06b977 commit 48d3b4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/process/src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function is_void_element(name: string): boolean {
}

function is_svelte_component(node: RenderableTreeNodes): boolean {
return Tag.isTag(node) && node.name.startsWith(IMPORT_PREFIX);
return Tag.isTag(node);
}

function generate_svelte_attribute_value(value: unknown): string {
Expand Down

0 comments on commit 48d3b4a

Please sign in to comment.