@aminnairi/rollup-plugin-external
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

@aminnairi/rollup-plugin-external

Lint Test Package

Rollup plugin for automatically computing your external dependencies.

Summary

Requirements

Installation

$ npm install --save-dev @aminnairi/rollup-plugin-external

Usage

ECMAScript

import {external} from "@aminnairi/rollup-plugin-external";

export default {
  plugins: [
    external()
  ]
};

TypeScript

import {external, ExternalOptions} from "@aminnairi/rollup-plugin-external";

const externalOptions: ExternalOptions = {
  withBuiltinModules: false
};

export default {
  plugins: [
    external(externalOptions)
  ]
}

Options

exclude

Modules to exclude from the Rollup's external configuration (default to []).

external({
  exclude: ["package", "to", "exclude"]
});

include

Modules to include in the Rollup's external configuration (default to []).

external({
  include: ["package", "to", "include"]
});

packageJsonPath

Path to the module configuration (default to package.json).

external({
  packageJsonPath: "./settings/package.production.json"
});

withBuiltinModules

Whether to include or not Node.js builtin modules in the Rollup's external configuration (default to true).

external({
  withBuiltinModules: false
});

withBundledDependencies

Whether to include or not bundledDependencies in the Rollup's external configuration (default to true).

external({
  withBundledDependencies: false
});

withDependencies

Whether to include or not dependencies in the Rollup's external configuration (default to true).

external({
  withDependencies: false
});

withOptionalDependencies

Whether to include or not optionalDependencies in the Rollup's external configuration (default to true).

external({
  withOptionalDependencies: false
});

withPeerDependencies

Whether to include or not peerDependencies in the Rollup's external configuration (default to true).

external({
  withPeerDependencies: false
});

Changelog

See CHANGELOG.md

Contributing

See CONTRIBUTING.md

License

See LICENSE

Package Sidebar

Install

npm i @aminnairi/rollup-plugin-external

Weekly Downloads

10

Version

0.1.3

License

MIT

Unpacked Size

16 kB

Total Files

8

Last publish

Collaborators

  • aminnairi