Skip to content

Commit

Permalink
fix: removing isolate export in the svelte transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
andrelmlins committed Apr 6, 2022
1 parent b6a813c commit b39530a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transformer/svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@ class SvelteTransformer implements ITransformer {
}

string += `\tinterface ${pathParse.name}Props {${propsString}\n\t}\n\n`;
string += `\tclass ${pathParse.name} extends SvelteComponentTyped<\n`;
string += `\texport default class ${pathParse.name} extends SvelteComponentTyped<\n`;
string += `\t\t${pathParse.name}Props,\n\t\t{ ${eventsString} },\n\t\t{ ${slotPropsString} }\n\t> {}`;
string += `\n\n\texport default ${pathParse.name};\n}\n\n`;
string += `\n}\n\n`;

return string;
}
Expand Down

0 comments on commit b39530a

Please sign in to comment.