JSPM

rollup-plugin-internal

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1276
  • Score
    100M100P100Q108682F
  • License MIT

Rollup plugin to explicitly mark dependencies as internal

Package Exports

  • rollup-plugin-internal

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rollup-plugin-internal) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.