reshadow icon indicating copy to clipboard operation
reshadow copied to clipboard

[svelte] preprocesser overwrites `this` attribute in an `<svelte:component />`

Open s0kil opened this issue 4 years ago • 0 comments

From: <svelte:component this={CountryFlag} {country}/> Into: <svelte:component {...map("svelte:component", {...})} />

Svelte Compiler Error:

<svelte:component> must have a 'this' attribute
166:             {#each countries as country}
167:               <p class={__styled__.styles["__p"]}>
168:                 <svelte:component {...map("svelte:component", {
                     ^
169:             this: CountryFlag,
170:             country: country

s0kil avatar Dec 08 '19 21:12 s0kil