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 the Svelte component includes <svelte:options tag="my-element" />, then the following warning is shown with npm run build:
(!) Plugin svelte: The 'tag' option is used when generating a custom element. Did you forget the 'customElement: true' compile option?
src/Component.svelte
1: <svelte:options tag="my-element" />
Changing the svelte plugin call in rollup.config.js (following the example in their own README) to this:
It's not clear what change is needed in rollup.config.js to get a custom element build by setting customElement: true compile option. Ideally, this template should be ready to export the components as custom elements. But at minimum, the README should document what change to make in the config to get a custom element build.
The text was updated successfully, but these errors were encountered:
If the Svelte component includes
<svelte:options tag="my-element" />
, then the following warning is shown withnpm run build
:Changing the svelte plugin call in
rollup.config.js
(following the example in their own README) to this:throws this error message:
It's not clear what change is needed in
rollup.config.js
to get a custom element build by settingcustomElement: true
compile option. Ideally, this template should be ready to export the components as custom elements. But at minimum, the README should document what change to make in the config to get a custom element build.The text was updated successfully, but these errors were encountered: