# gobble-rollup

> Bundle ES6 modules with gobble and rollup

Latest version **0.40.0** (published 2017-01-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install gobble-rollup
pnpm add gobble-rollup
yarn add gobble-rollup
bun add gobble-rollup
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.40.0 |
| Published | 2017-01-05 |
| First published | 2015-05-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Rich Harris |
| Maintainers | ivansanchez, rich_harris |
| Keywords | gobble, gobble-plugin |

## Links

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

## Dependencies (1)

- [rollup](https://npm.io/package/rollup.md) ^0.40.0

## Recent versions

- 0.40.0 (latest) — 2017-01-05
- 0.36.0 — 2016-09-28
- 0.35.0 — 2016-09-28
- 0.34.0 — 2016-08-09
- 0.33.0 — 2016-06-24
- 0.29.0 — 2016-06-08
- 0.27.0 — 2016-06-07
- 0.26.3 — 2016-05-13
- 0.26.1 — 2016-05-05
- 0.26.0 — 2016-04-25
- 0.25.0 — 2016-01-19
- 0.11.0 — 2015-10-25
- 0.10.0 — 2015-10-05
- 0.9.0 — 2015-10-02
- 0.8.1 — 2015-09-19
- … 11 more at https://npm.io/package/gobble-rollup/versions

## README

# gobble-rollup

Bundle ES6 modules with gobble and [rollup](https://github.com/rich-harris/rollup).

## Installation

First, you need to have gobble installed - see the [gobble readme](https://github.com/gobblejs/gobble) for details. Then,

```bash
npm i -D gobble-rollup
```

## Usage

**gobblefile.js**

```js
var gobble = require( 'gobble' );
module.exports = gobble( 'src' ).transform( 'rollup', {
  // REQUIRED - the file to start bundling from
  entry: 'app.js',

  // where to write the file to. If omitted,
  // will match the entry module's name
  dest: 'bundle.js',

  // what type of module to create - can be one of
  // 'amd', 'cjs', 'es6', 'iife', 'umd'. Defaults to 'cjs'
  format: 'umd',

  // if generating a 'umd' module, and the entry module
  // (and therefore the bundle) has exports, specify
  // a global name
  moduleName: 'myApp', // becomes `window.myApp`

  // if generated 'amd' or 'umd', you can specify a
  // moduleId which will be used by AMD loaders
  moduleId: 'my-app',

  // set export type explicitly - 'named', 'default' or 'none'.
  // By default this will be set automatically
  exports: 'default',

  // disable caching, in case that's necessary for
  // some reason
  cache: false
});
```

## License

MIT. Copyright 2015 Rich Harris

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