forked from rollup/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
executable file
·40 lines (38 loc) · 999 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { Plugin } from 'rollup';
export interface RollupJsonOptions {
/**
* All JSON files will be parsed by default,
* but you can also specifically include files
*/
include?: string | RegExp | ReadonlyArray<string | RegExp> | null;
/**
* All JSON files will be parsed by default,
* but you can also specifically exclude files
*/
exclude?: string | RegExp | ReadonlyArray<string | RegExp> | null;
/**
* For tree-shaking, properties will be declared as variables, using
* either `var` or `const`.
* @default false
*/
preferConst?: boolean;
/**
* Specify indentation for the generated default export
* @default '\t'
*/
indent: string;
/**
* Ignores indent and generates the smallest code
* @default false
*/
compact: boolean;
/**
* Generate a named export for every property of the JSON object
* @default true
*/
namedExports: true;
}
/**
* Convert .json files to ES6 modules
*/
export default function json(options?: RollupJsonOptions): Plugin;