Sha256: 0d307f7e69851a0fda49ee907443faf7cd225b9a4fed5f333aeb6a452a542870

Contents?: true

Size: 1.51 KB

Versions: 10

Compression:

Stored size: 1.51 KB

Contents

import { Plugin } from 'rollup';

interface RollupCommonJSOptions {
	/**
	 * non-CommonJS modules will be ignored, but you can also
	 * specifically include/exclude files
	 * @default undefined
	 */
	include?: string | RegExp | ReadonlyArray<string | RegExp>,
	/**
	 * non-CommonJS modules will be ignored, but you can also
	 * specifically include/exclude files
	 * @default undefined
	 */
	exclude?: string | RegExp | ReadonlyArray<string | RegExp>,
	/**
	 * search for files other than .js files (must already
	 * be transpiled by a previous plugin!)
	 * @default [ '.js' ]
	 */
	extensions?: ReadonlyArray<string | RegExp>,
	/**
	 * if true then uses of `global` won't be dealt with by this plugin
	 * @default false
	 */
	ignoreGlobal?: boolean,
	/**
	 * if false then skip sourceMap generation for CommonJS modules
	 * @default true
	 */
	sourceMap?: boolean,
	/**
	 * explicitly specify unresolvable named exports
	 * ([see below for more details](https://github.com/rollup/rollup-plugin-commonjs#custom-named-exports))
	 * @default undefined
	 */
	namedExports?: { [package: string]: ReadonlyArray<string> },
	/**
	 * sometimes you have to leave require statements
	 * unconverted. Pass an array containing the IDs
	 * or a `id => boolean` function. Only use this
	 * option if you know what you're doing!
	 */
	ignore?: ReadonlyArray<string | ((id: string) => boolean)>,
}

/**
 * Convert CommonJS modules to ES6, so they can be included in a Rollup bundle
 */
export default function commonjs(options?: RollupCommonJSOptions): Plugin;

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
condenser-0.3 lib/condenser/processors/node_modules/rollup-plugin-commonjs/index.d.ts
condenser-0.2 lib/condenser/processors/node_modules/rollup-plugin-commonjs/index.d.ts
condenser-0.1 lib/condenser/processors/node_modules/rollup-plugin-commonjs/index.d.ts
condenser-0.0.12 lib/condenser/processors/node_modules/rollup-plugin-commonjs/index.d.ts
condenser-0.0.11 lib/condenser/processors/node_modules/rollup-plugin-commonjs/index.d.ts
condenser-0.0.10 lib/condenser/processors/node_modules/rollup-plugin-commonjs/index.d.ts
condenser-0.0.9 lib/condenser/processors/node_modules/rollup-plugin-commonjs/index.d.ts
condenser-0.0.8 lib/condenser/processors/node_modules/rollup-plugin-commonjs/index.d.ts
condenser-0.0.7 lib/condenser/processors/node_modules/rollup-plugin-commonjs/index.d.ts
condenser-0.0.5 lib/condenser/processors/node_modules/rollup-plugin-commonjs/index.d.ts