import { IsExternal } from 'rollup'; /** * Options of `nodeExternals`. * * @export * @interface NodeExternalsOptions */ export interface NodeExternalsOptions { /** * List of additional modules to exclude from bundle * * @type {(Array)} * @memberof NodeExternalsOptions */ extra?: (string | RegExp)[]; /** * Whitelist of modules to include in bundle (Don't treat as externals) * * @type {(Array)} * @memberof NodeExternalsOptions */ whitelist?: (string | RegExp)[]; } /** * Create function to treat node modules as external to the bundle. * * @export * @returns {IsExternal} */ export default function nodeExternals(options?: NodeExternalsOptions): IsExternal;