summaryrefslogtreecommitdiff
path: root/packages/integrations/svelte/src
diff options
context:
space:
mode:
authorGravatar wackbyte <wackbyte@protonmail.com> 2023-06-06 19:07:43 -0400
committerGravatar GitHub <noreply@github.com> 2023-06-06 18:07:43 -0500
commite47e53dc0c38468c9cf7ffaf6e21c80291d013cc (patch)
treeb800a6827a6c34db9c4b7dcdf59d19a977f3826f /packages/integrations/svelte/src
parent8a029d988992c77f9db629b8cb3b42c749542feb (diff)
downloadastro-e47e53dc0c38468c9cf7ffaf6e21c80291d013cc.tar.gz
astro-e47e53dc0c38468c9cf7ffaf6e21c80291d013cc.tar.zst
astro-e47e53dc0c38468c9cf7ffaf6e21c80291d013cc.zip
Update to svelte2tsx 0.6.15 and vite-plugin-svelte 2.4.1 (#7314)
Diffstat (limited to 'packages/integrations/svelte/src')
-rw-r--r--packages/integrations/svelte/src/editor.cts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/integrations/svelte/src/editor.cts b/packages/integrations/svelte/src/editor.cts
index c14f082b1..2d426cf1b 100644
--- a/packages/integrations/svelte/src/editor.cts
+++ b/packages/integrations/svelte/src/editor.cts
@@ -10,7 +10,7 @@ export function toTSX(code: string, className: string): string {
let tsx = svelte2tsx(code, { mode: 'ts' }).code;
tsx = '/// <reference types="svelte2tsx/svelte-shims" />\n' + tsx;
result = tsx.replace(
- 'export default class extends __sveltets_1_createSvelte2TsxComponent(',
+ 'export default class extends __sveltets_2_createSvelte2TsxComponent(',
`export default function ${className}__AstroComponent_(_props: typeof Component.props): any {}\nlet Component = `
);
} catch (e: any) {