@ashleyw/rollup-plugin-internal

v1.0.0
Rollup plugin to mark dependencies as internal
dependencies internal plugin rollup

rollup-plugin-internal

Rollup plugin to mark dependencies as internal.

Install

yarn add -D rollup-plugin-internal

Usage

Example rollup.config.js
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import autoExternal from 'rollup-plugin-auto-external';
import internal from 'rollup-plugin-internal';

export default {
  input: 'index.js',
  plugins: [
    resolve(),
    commonjs(),
    autoExternal(),

    // should be the last plugin
    internal({
      modules: ['react', 'react-dom'],
    }),
  ],
};

Options

  • modules: string[] — Array of modules to mark as internal.
npm i @ashleyw/rollup-plugin-internal

Metadata

  • MIT
  • >=8
  • Ashley Williams
  • released 8/1/2019

Downloads

Maintainers