@types/rollup-plugin-auto-external
Version:
TypeScript definitions for rollup-plugin-auto-external
28 lines (22 loc) • 906 B
TypeScript
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;