• Version 3.0.7
  • Published
  • 4.4 kB
  • 1 dependency
  • MIT license


npm i @types/rollup-plugin-json
yarn add @types/rollup-plugin-json
pnpm add @types/rollup-plugin-json


TypeScript definitions for rollup-plugin-json



function json

json: (options?: json.Options) => Plugin;


    interface Options

    interface Options {}

      property exclude

      exclude?: string | string[] | undefined;

        property include

        include?: string | string[] | undefined;
        • All JSON files will be parsed by default, but you can also specifically include/exclude files

        property indent

        indent?: string | undefined;
        • specify indentation for the generated default export — defaults to '\t' '\t'

        property preferConst

        preferConst?: boolean | undefined;
        • for tree-shaking, properties will be declared as variables, using either var or const false

        Package Files (1)

        Dependencies (1)

        Dev Dependencies (0)

        No dev dependencies.

        Peer Dependencies (0)

        No peer dependencies.


        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/@types/rollup-plugin-json.

        • Markdown
        • HTML
          <a href="https://www.jsdocs.io/package/@types/rollup-plugin-json"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>