rollup-plugin-internal
Rollup plugin to explicitly mark dependencies as internal
Last updated 7 years ago by ashleyw .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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 (7 years ago)

5 Versions

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

Copyright 2013 - present © cnpmjs.org | Home |