1 | # Installation
|
2 | > `npm install --save @types/rollup-plugin-node-globals`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for rollup-plugin-node-globals (https://github.com/calvinmetcalf/rollup-plugin-node-globals#readme).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rollup-plugin-node-globals.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rollup-plugin-node-globals/index.d.ts)
|
10 | ````ts
|
11 | import { Plugin } from "rollup";
|
12 |
|
13 | declare namespace RollupPluginsNodeGlobals {
|
14 | interface Options {
|
15 | // Every files will be parsed by default, but you can specify which files to include or exclude
|
16 | include?: Array<string | RegExp> | string | RegExp | null | undefined;
|
17 | exclude?: Array<string | RegExp> | string | RegExp | null | undefined;
|
18 |
|
19 | // Enable sourcemaps support
|
20 | sourceMap?: boolean | undefined;
|
21 |
|
22 | // Plugin's options
|
23 | process?: boolean | undefined;
|
24 | global?: boolean | undefined;
|
25 | buffer?: boolean | undefined;
|
26 | dirname?: boolean | undefined;
|
27 | filename?: boolean | undefined;
|
28 | baseDir?: string | undefined;
|
29 | }
|
30 | }
|
31 |
|
32 | declare function RollupPluginsNodeGlobals(options?: RollupPluginsNodeGlobals.Options): Plugin;
|
33 |
|
34 | export = RollupPluginsNodeGlobals;
|
35 |
|
36 | ````
|
37 |
|
38 | ### Additional Details
|
39 | * Last updated: Mon, 07 Oct 2024 22:38:10 GMT
|
40 | * Dependencies: [rollup](https://npmjs.com/package/rollup)
|
41 |
|
42 | # Credits
|
43 | These definitions were written by [Hugo Alliaume](https://github.com/kocal).
|
44 |
|
\ | No newline at end of file |