rollup-plugin-internal
Rollup plugin to explicitly mark dependencies as internal
Last updated 5 years ago by ashleyw .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install rollup-plugin-internal 
SYNC missed versions from official npm registry.

rollup-plugin-internal

npm version

Rollup plugin to explicitly 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(['react', 'react-dom']),
  ],
};

Options

  • modules: string[] — Array of modules to mark as internal.

Current Tags

  • 1.0.4                                ...           latest (5 years ago)

5 Versions

  • 1.0.4                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE