0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00

Prevent passing to Svelte components

This commit is contained in:
Matthew Phillips 2021-10-25 14:01:38 -04:00
parent 190e03b5ce
commit 303f32fda0

View file

@ -2,6 +2,7 @@ import SvelteWrapper from './Wrapper.svelte';
export default (target) => {
return (component, props, children) => {
delete props['class'];
try {
new SvelteWrapper({
target,