forked from rollup/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
32 lines (26 loc) · 980 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
import { Plugin } from "rollup";
type Injectment = string | [string, string];
export interface RollupInjectOptions {
/**
* A minimatch pattern, or array of patterns, of files that should be
* processed by this plugin (if omitted, all files are included by default)
*/
include?: string | RegExp | ReadonlyArray<string | RegExp> | null;
/**
* Files that should be excluded, if `include` is otherwise too permissive.
*/
exclude?: string | RegExp | ReadonlyArray<string | RegExp> | null;
/**
* You can separate values to inject from other options.
*/
modules?: { [str: string]: Injectment };
/**
* All other options are treated as `string: injectment` injectrs,
* or `string: (id) => injectment` functions.
*/
[str: string]: Injectment | RollupInjectOptions["include"] | RollupInjectOptions["modules"];
}
/**
* inject strings in files while bundling them.
*/
export default function inject(options?: RollupInjectOptions): Plugin;