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 | /// <reference types="node" />
|
12 |
|
13 | import { Plugin } from "rollup";
|
14 |
|
15 | export interface Options {
|
16 | // Every files will be parsed by default, but you can specify which files to include or exclude
|
17 | include?: Array<string | RegExp> | string | RegExp | null | undefined;
|
18 | exclude?: Array<string | RegExp> | string | RegExp | null | undefined;
|
19 |
|
20 | // Enable sourcemaps support
|
21 | sourceMap?: boolean | undefined;
|
22 |
|
23 | // Plugin's options
|
24 | process?: boolean | undefined;
|
25 | global?: boolean | undefined;
|
26 | buffer?: boolean | undefined;
|
27 | dirname?: boolean | undefined;
|
28 | filename?: boolean | undefined;
|
29 | baseDir?: string | undefined;
|
30 | }
|
31 |
|
32 | export default function globals(options?: Options): Plugin;
|
33 |
|
34 | ````
|
35 |
|
36 | ### Additional Details
|
37 | * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
|
38 | * Dependencies: [@types/node](https://npmjs.com/package/@types/node), [rollup](https://npmjs.com/package/rollup)
|
39 |
|
40 | # Credits
|
41 | These definitions were written by [Hugo Alliaume](https://github.com/kocal).
|
42 |
|
\ | No newline at end of file |