You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a tag name is specified within the rollup config (and not in the .svelte files), that name ends up being specified multiple times (once per .svelte file)
If you're specifying a tag name in the configuration that's passed to the compiler (via the Rollup config), you're saying any component compiled with that configuration should get that tag name, so this is expected.
It's possible we should provide a way in rollup-plugin-svelte (and svelte-loader) to vary the compiler options based on which file you're compiling, but I'm not sure what that should look like.
Perhaps my expections are off or unclear, I do expect the specified name to be registered, just not for every subcomponent within the package.
If in a customElement flow, I'd expect only the explicitly named ones to end up as a registered component, not every (sub)component as a separate custom element.
This probably ties in with me working with a lot of smaller packages, each becoming a single component, regardless of its internal structure
If a tag name is specified within the rollup config (and not in the .svelte files), that name ends up being specified multiple times (once per .svelte file)
demo repo demonstrating the issue
This may be related to #2417
The text was updated successfully, but these errors were encountered: