{"library":"rollup-plugin-svelte-ssr","title":"rollup-plugin-svelte-ssr","description":"Server-side rendering of a Svelte app at build-time using a Rollup plugin. Current stable version is 1.0.3, last released in June 2020. The plugin pre-renders a Svelte component with specified props during the Rollup build, outputting static HTML and CSS files. Differentiators: simple Rollup integration, supports custom output file naming, CSS/HTML preprocessing, and selective JS file emission. Ideal for generating static HTML for Svelte apps in a Rollup build pipeline. Note: This project appears to be in maintenance mode with no recent updates.","language":"javascript","status":"maintenance","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-svelte-ssr"],"cli":null},"imports":["import ssr from 'rollup-plugin-svelte-ssr'","import ssr from 'rollup-plugin-svelte-ssr'","import ssr from 'rollup-plugin-svelte-ssr'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport svelte from 'rollup-plugin-svelte';\nimport ssr from 'rollup-plugin-svelte-ssr';\n\nexport default {\n  input: 'src/App.svelte',\n  output: {\n    format: 'cjs',\n    file: 'dist/ssr.js',\n  },\n  plugins: [\n    svelte({ generate: 'ssr' }),\n    ssr({\n      fileName: 'ssr.html',\n      props: { name: 'World' },\n    }),\n  ],\n};\n// Assumes a Svelte component at src/App.svelte with export let name;","lang":"javascript","description":"Rollup config to SSR a Svelte component into a static HTML file during build.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}