@types/rollup-plugin-auto-external
Version:
TypeScript definitions for rollup-plugin-auto-external
47 lines (36 loc) • 1.63 kB
Markdown
# Installation
> `npm install --save @types/rollup-plugin-auto-external`
# Summary
This package contains type definitions for rollup-plugin-auto-external (https://github.com/stevenbenisek/rollup-plugin-auto-external).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rollup-plugin-auto-external.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rollup-plugin-auto-external/index.d.ts)
````ts
import { Plugin } from "rollup";
interface AutoExternalOptions {
/**
* defaults to true. Add all Node.js builtin modules (in the running version) as externals. Specify a string value (e.g., '6.0.0') to add all builtin modules for a specific version of Node.js.
* Rollup will complain if builtins is present, and the build target is a browser. You may want [rollup-plugin-node-builtins](https://npm.im/package/rollup-plugin-node-builtins).
*/
builtins?: boolean | string | undefined;
/**
* defaults to true.
*/
dependencies?: boolean | undefined;
/**
* defaults to process.cwd(). Path to a package.json file or its directory.
*/
packagePath?: string | undefined;
/**
* defaults to true.
*/
peerDependencies?: boolean | undefined;
}
declare function autoExternal(options?: AutoExternalOptions): Plugin;
export = autoExternal;
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 15:11:36 GMT
* Dependencies: [rollup](https://npmjs.com/package/rollup)
# Credits
These definitions were written by [rxliuli](https://github.com/rxliuli).