rollup-plugin-svelte
- Version 7.2.3
- Published
- 15.1 kB
- 2 dependencies
- MIT license
Install
npm i rollup-plugin-svelteyarn add rollup-plugin-sveltepnpm add rollup-plugin-svelteOverview
Compile Svelte components with Rollup
Index
Functions
Interfaces
Type Aliases
Functions
function svelte
svelte: (options?: Partial<Options>) => Plugin;Interfaces
interface Options
interface Options {}property compilerOptions
compilerOptions: CompileOptions;Options passed to
svelte.compilemethod.
property emitCss
emitCss: boolean;Emit Svelte styles as virtual CSS files for other plugins to process.
property exclude
exclude: Arrayable<string>;One or more minimatch patterns
property extensions
extensions: string[];By default, all ".svelte" files are compiled ['.svelte']
property include
include: Arrayable<string>;One or more minimatch patterns
property preprocess
preprocess: Arrayable<PreprocessorGroup>;Optionally, preprocess components with svelte.preprocess:
See Also
https://svelte.dev/docs#svelte_preprocess
method onwarn
onwarn: (warning: RollupWarning, handler: WarningHandler) => void;Custom warnings handler; defers to Rollup as default.
Type Aliases
type Arrayable
type Arrayable<T> = T | T[];type WarningHandler
type WarningHandler = (warning: RollupWarning | string) => void;Package Files (1)
Dependencies (2)
Dev Dependencies (6)
Peer Dependencies (2)
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/rollup-plugin-svelte.
- Markdown[](https://www.jsdocs.io/package/rollup-plugin-svelte)
- HTML<a href="https://www.jsdocs.io/package/rollup-plugin-svelte"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3589 ms. - Missing or incorrect documentation? Open an issue for this package.
