# rollup-plugin-node-resolve-jail

> Bundle third-party dependencies in node_modules (with jail feature)

Latest version **3.0.0** (published 2016-09-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install rollup-plugin-node-resolve-jail
pnpm add rollup-plugin-node-resolve-jail
yarn add rollup-plugin-node-resolve-jail
bun add rollup-plugin-node-resolve-jail
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2016-09-22 |
| First published | 2016-08-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rich Harris |
| Maintainers | spy-seth |
| Keywords | rollup, rollup-plugin, es2015, npm, modules, jail, chroot |

## Links

- npm: https://www.npmjs.com/package/rollup-plugin-node-resolve-jail
- Repository: https://github.com/rezzza/rollup-plugin-node-resolve
- Homepage: https://github.com/rezzza/rollup-plugin-node-resolve#readme
- Issues: https://github.com/rezzza/rollup-plugin-node-resolve/issues
- npm.io page: https://npm.io/package/rollup-plugin-node-resolve-jail

## Dependencies (3)

- [resolve](https://npm.io/package/resolve.md) ^1.1.6
- [browser-resolve](https://npm.io/package/browser-resolve.md) ^1.11.0
- [builtin-modules](https://npm.io/package/builtin-modules.md) ^1.1.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

- 3.0.0 (latest) — 2016-09-22
- 2.0.0 — 2016-08-30

## README

# rollup-plugin-node-resolve-jail

*This plugin is a fork of the [`rollup-plugin-node-resolve`](https://github.com/rollup/rollup-plugin-node-resolve) plugin. It add a
jail/chroot like feature.*

Locate modules using the [Node resolution algorithm](https://nodejs.org/api/modules.html#modules_all_together), for using third party modules in `node_modules`. This fork allow to restrain the
lookup into a parent directory.

## Installation

```bash
npm install --save-dev rollup-plugin-node-resolve-jail
```

## Usage

```js
import { rollup } from 'rollup';
import nodeResolveJail from 'rollup-plugin-node-resolve-jail';

rollup({
  entry: 'main.js',
  plugins: [
    nodeResolveJail({
      // See `rollup-plugin-node-resolve` plugin documentation for the options
      // detail.

      // Lock the module search in this path (like a chroot). Module defined
      // outside this path will be mark has external.
      jail: '/my/jail/path' // Default: '/'

    })
  ]
}).then( bundle => bundle.write({ dest: 'bundle.js', format: 'iife' }) );
```


## License

MIT

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