aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/svelte
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/svelte')
-rw-r--r--packages/integrations/svelte/client.js4
-rw-r--r--packages/integrations/svelte/src/editor.cts2
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/integrations/svelte/client.js b/packages/integrations/svelte/client.js
index 056fd19c7..005bbe9da 100644
--- a/packages/integrations/svelte/client.js
+++ b/packages/integrations/svelte/client.js
@@ -41,7 +41,7 @@ function createSlotDefinition(key, children) {
parent = target;
target.insertAdjacentHTML(
'beforeend',
- `<astro-slot${key === 'default' ? '' : ` name="${key}"`}>${children}</astro-slot>`
+ `<astro-slot${key === 'default' ? '' : ` name="${key}"`}>${children}</astro-slot>`,
);
},
// create
@@ -52,7 +52,7 @@ function createSlotDefinition(key, children) {
d() {
if (!parent) return;
const slot = parent.querySelector(
- `astro-slot${key === 'default' ? ':not([name])' : `[name="${key}"]`}`
+ `astro-slot${key === 'default' ? ':not([name])' : `[name="${key}"]`}`,
);
if (slot) slot.remove();
},
diff --git a/packages/integrations/svelte/src/editor.cts b/packages/integrations/svelte/src/editor.cts
index b61c0e74d..42a72913d 100644
--- a/packages/integrations/svelte/src/editor.cts
+++ b/packages/integrations/svelte/src/editor.cts
@@ -11,7 +11,7 @@ export function toTSX(code: string, className: string): string {
tsx = '/// <reference types="svelte2tsx/svelte-shims" />\n' + tsx;
result = tsx.replace(
'export default class extends __sveltets_2_createSvelte2TsxComponent(',
- `export default function ${className}__AstroComponent_(_props: typeof Component.props): any {}\nlet Component = `
+ `export default function ${className}__AstroComponent_(_props: typeof Component.props): any {}\nlet Component = `,
);
} catch {
return result;