UNPKG

845 BTypeScriptView Raw
1import { Plugin } from "rollup";
2
3declare namespace RollupPluginsNodeGlobals {
4 interface Options {
5 // Every files will be parsed by default, but you can specify which files to include or exclude
6 include?: Array<string | RegExp> | string | RegExp | null | undefined;
7 exclude?: Array<string | RegExp> | string | RegExp | null | undefined;
8
9 // Enable sourcemaps support
10 sourceMap?: boolean | undefined;
11
12 // Plugin's options
13 process?: boolean | undefined;
14 global?: boolean | undefined;
15 buffer?: boolean | undefined;
16 dirname?: boolean | undefined;
17 filename?: boolean | undefined;
18 baseDir?: string | undefined;
19 }
20}
21
22declare function RollupPluginsNodeGlobals(options?: RollupPluginsNodeGlobals.Options): Plugin;
23
24export = RollupPluginsNodeGlobals;