summaryrefslogtreecommitdiff
path: root/packages/integrations/svelte/client.js
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@skypack.dev> 2022-10-10 15:19:18 -0400
committerGravatar GitHub <noreply@github.com> 2022-10-10 15:19:18 -0400
commit0f2a88ba5c19318854be12cc81609f2dbc5012f7 (patch)
tree9da88c44fdcfac93ea1b2bd96530f644d61ee54b /packages/integrations/svelte/client.js
parent44ea0c6d941a26a3c38fc6dc045a8a25215d154a (diff)
downloadastro-0f2a88ba5c19318854be12cc81609f2dbc5012f7.tar.gz
astro-0f2a88ba5c19318854be12cc81609f2dbc5012f7.tar.zst
astro-0f2a88ba5c19318854be12cc81609f2dbc5012f7.zip
Allow `class` to be passed into Svelte islands (#5045)
* Allow class to be passed into svelte component * Adding a changeset
Diffstat (limited to 'packages/integrations/svelte/client.js')
-rw-r--r--packages/integrations/svelte/client.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/packages/integrations/svelte/client.js b/packages/integrations/svelte/client.js
index c8c252eaa..406500374 100644
--- a/packages/integrations/svelte/client.js
+++ b/packages/integrations/svelte/client.js
@@ -3,7 +3,6 @@ const noop = () => {};
export default (target) => {
return (Component, props, slotted, { client }) => {
if (!target.hasAttribute('ssr')) return;
- delete props['class'];
const slots = {};
for (const [key, value] of Object.entries(slotted)) {
slots[key] = createSlotDefinition(key, value);