A simple experimental starter for creating a Svelte component library with Rslib.
Install dependencies:
pnpm install
Build the library:
pnpm build
Run the library build in watch mode:
pnpm dev
Run tests with Rstest:
pnpm test
Run type checking:
pnpm type-check
There are two Rsbuild playgrounds.
Run the source playground, which imports from src:
pnpm run play:src
Run the dist playground, which imports from dist/index.js and dist/index.css:
pnpm run play:dist
play:dist runs pnpm run build first so the compiled files exist.