rollup-plugin-svelte-wc
v0.1.4
Published
Import svelte components as web component scripts to use anywhere in any rollup/vite projects.
Downloads
11
Readme
Rollup Plugin: Svelte Web Components
Import svelte components as web component scripts to use anywhere in any rollup/vite projects.
Install
npm install rollup-plugin-svelte-wc
Add the following to a global.d.ts
in your project:
Help Wanted: If you know a way to bundle these types with the module in a way that easily gets imported and used, please open a PR!
declare module "*.svelte?wcs" {
const script: string;
export default script;
}