1 | import { FilterPattern } from '@rollup/pluginutils';
|
2 | import { Plugin } from 'rollup';
|
3 |
|
4 | export interface RollupJsonOptions {
|
5 | /**
|
6 | * All JSON files will be parsed by default,
|
7 | * but you can also specifically include files
|
8 | */
|
9 | include?: FilterPattern;
|
10 | /**
|
11 | * All JSON files will be parsed by default,
|
12 | * but you can also specifically exclude files
|
13 | */
|
14 | exclude?: FilterPattern;
|
15 | /**
|
16 | * For tree-shaking, properties will be declared as variables, using
|
17 | * either `var` or `const`.
|
18 | * @default false
|
19 | */
|
20 | preferConst?: boolean;
|
21 | /**
|
22 | * Specify indentation for the generated default export
|
23 | * @default '\t'
|
24 | */
|
25 | indent?: string;
|
26 | /**
|
27 | * Ignores indent and generates the smallest code
|
28 | * @default false
|
29 | */
|
30 | compact?: boolean;
|
31 | /**
|
32 | * Generate a named export for every property of the JSON object
|
33 | * @default true
|
34 | */
|
35 | namedExports?: boolean;
|
36 | }
|
37 |
|
38 | /**
|
39 | * Convert .json files to ES6 modules
|
40 | */
|
41 | export default function json(options?: RollupJsonOptions): Plugin;
|