# rollup-plugin-internal

> Rollup plugin to explicitly mark dependencies as internal

Latest version **1.0.4** (published 2019-08-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install rollup-plugin-internal
pnpm add rollup-plugin-internal
yarn add rollup-plugin-internal
bun add rollup-plugin-internal
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2019-08-01 |
| First published | 2019-08-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 2 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ashley Williams |
| Maintainers | ashleyw |
| Keywords | dependencies, internal, plugin, rollup |

## Links

- npm: https://www.npmjs.com/package/rollup-plugin-internal
- Repository: https://github.com/ashleyw/rollup-plugin-internal
- Issues: https://github.com/ashleyw/rollup-plugin-internal/issues
- npm.io page: https://npm.io/package/rollup-plugin-internal

## Dependencies (2)

- [tslib](https://npm.io/package/tslib.md) ^1.10.0
- [safe-resolve](https://npm.io/package/safe-resolve.md) ^1.0.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2019-08-01
- 1.0.3 — 2019-08-01
- 1.0.2 — 2019-08-01
- 1.0.1 — 2019-08-01
- 1.0.0 — 2019-08-01

## README

# rollup-plugin-internal

[![npm version](https://badge.fury.io/js/rollup-plugin-internal.svg)](https://badge.fury.io/js/rollup-plugin-internal)

[Rollup](https://rollupjs.org/) plugin to explicitly mark dependencies as internal.

## Install

```bash
yarn add -D rollup-plugin-internal
```

## Usage

##### Example `rollup.config.js`

```ts
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.

---
_Source: https://npm.io/package/rollup-plugin-internal · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
