rollup-plugin-svelte

  • Version 7.2.2
  • Published
  • 15.3 kB
  • 2 dependencies
  • MIT license

Install

npm i rollup-plugin-svelte
yarn add rollup-plugin-svelte
pnpm add rollup-plugin-svelte

Overview

Compile Svelte components with Rollup

Index

Functions

function svelte

svelte: (options?: Partial<Options>) => Plugin;

    Interfaces

    interface Options

    interface Options {}

      property compilerOptions

      compilerOptions: CompileOptions;
      • Options passed to svelte.compile method.

      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 (7)

          Peer Dependencies (2)

          Badge

          To add a badge like this onejsDocs.io badgeto 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
            [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](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>