{"library":"rollup-plugin-uniroll-svelte","title":"rollup-plugin-uniroll-svelte","description":"A Rollup plugin that integrates Svelte compilation with Uniroll, enabling bundling of Svelte components in browser or Node environments. Current version is 4.0.1-alpha.0, with pre-release status and active development. It provides TypeScript support, configurable Svelte compiler options, and compatibility with Uniroll's bundling pipeline. Differentiators include support for IE via ES5 transpilation, CSS extraction instead of injection, and integration with esm.sh for CDN resolution. Requires Svelte 3.x, Rollup, and Uniroll as peer dependencies.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install rollup-plugin-uniroll-svelte"],"cli":null},"imports":["import { svelte } from 'rollup-plugin-uniroll-svelte'","import { createStylePreprocessor } from 'rollup-plugin-uniroll-svelte/lib/server/stylePreproccessor'","import { bundle } from 'uniroll'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import ts from \"typescript\";\nimport { bundle } from \"uniroll\";\nimport { svelte } from \"rollup-plugin-uniroll-svelte\";\n\nconst files = {\n  \"/index.svelte\": `<script>let count = 0</script><button on:click={() => count++}>{count}</button>`\n};\n\nconst cdnPrefix = \"https://cdn.skypack.dev/\";\n\nasync function main() {\n  const result = await bundle({\n    input: \"/index.svelte\",\n    files,\n    extraPlugins: [\n      svelte({\n        target: ts.ScriptTarget.ES2019,\n        cdnPrefix,\n        svelteOptions: {}\n      })\n    ]\n  });\n  console.log(result);\n}\n\nmain().catch(console.error);","lang":"typescript","description":"Minimal example: bundle a Svelte component using Uniroll and the Svelte plugin.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}