# @jspm/plugin-rollup

> Rollup plugin for jspm 2

Latest version **3.0.0** (published 2026-05-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @jspm/plugin-rollup
pnpm add @jspm/plugin-rollup
yarn add @jspm/plugin-rollup
bun add @jspm/plugin-rollup
```

## Health

**Score 50/100 (C)** — status: active.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2026-05-24 |
| First published | 2025-05-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 8 |
| Unpacked size | 101.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Maintainers | guybedford, jkrishna, bubblyworld |

## Links

- npm: https://www.npmjs.com/package/@jspm/plugin-rollup
- Repository: https://github.com/jspm/rollup-plugin-jspm
- Homepage: https://github.com/jspm/rollup-plugin-jspm#readme
- Issues: https://github.com/jspm/rollup-plugin-jspm/issues
- npm.io page: https://npm.io/package/@jspm/plugin-rollup

## Dependencies (8)

- [terser](https://npm.io/package/terser.md) ^5.31.3
- [@jspm/core](https://npm.io/package/@jspm/core.md) ^2.0.0-beta.8
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.25.2
- [@babel/parser](https://npm.io/package/@babel/parser.md) ^7.21.3
- [@jspm/generator](https://npm.io/package/@jspm/generator.md) ^2.16.0
- [@jspm/import-map](https://npm.io/package/@jspm/import-map.md) ^1.5.0
- [cjs-module-lexer](https://npm.io/package/cjs-module-lexer.md) ^2.2.0
- [@babel/preset-typescript](https://npm.io/package/@babel/preset-typescript.md) ^7.24.7

## Recent versions

- 3.0.0 (latest) — 2026-05-24
- 1.2.4 — 2025-05-19
- 1.2.3 — 2025-05-19
- 1.2.2 — 2025-05-19
- 1.2.1 — 2025-05-19
- 1.2.0 — 2025-05-19

## README

# @jspm/plugin-rollup

Standards-based JSPM Rollup plugin, including:

* All module references as URLs
* Support for resolving packages via node_modules or CDN providers
* Fully compatible with Node.js resolution semantics
* Support for import maps
* Support for TypeScript

## Installation

```bash
npm install @jspm/plugin-rollup rollup --save-dev
```

## Usage

rollup.config.js
```js
import jspmRollup from '@jspm/plugin-rollup';

const baseUrl = new URL('./components', import.meta.url);

export default {
  // Important to use "./" here to indicate a local path
  // and not a package. Resolved to baseUrl below.
  input: './main.js',
  plugins: [
    jspmRollup({
      baseUrl,

      // Generator options as per @jspm/generator
      defaultProvider: 'nodemodules',
      env: ['browser'],

      // map of externals to aliased or true
      externals: {
        react: 'custom-react'
      }
    })
  ]
}
```

```
rollup -c
```

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