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.
npm install rollup-plugin-uniroll-svelteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal example: bundle a Svelte component using Uniroll and the Svelte plugin.
Update Uniroll to v4 and ensure Svelte is version 3.x.
Use the new import path from 'rollup-plugin-uniroll-svelte/lib/server/stylePreproccessor'.
Use Svelte 3.x or prepare to migrate to a different Svelte Rollup plugin.
Use Skypack CDN (https://cdn.skypack.dev/) as shown in examples.
Use `import { svelte } from 'rollup-plugin-uniroll-svelte'` instead of `import svelte from 'rollup-plugin-uniroll-svelte'`.Switch to Skypack CDN: `cdnPrefix: 'https://cdn.skypack.dev/'`.
Use `import { svelte } from 'rollup-plugin-uniroll-svelte'`.Downgrade Svelte to 3.x: `npm install svelte@3`.
Update import to `rollup-plugin-uniroll-svelte/lib/server/stylePreproccessor`.