2.3.0 • Published 5 years ago

@movable/broccoli-rollup v2.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Note: this is a (hopefully temporary) fork of the broccoli-rollup module.

Usage Build Status

Broccoli-rollup is a simple wrapper around Rollup. In the options object pass the rollup options.

basic

var Rollup = require('broccoli-rollup');
var lib = 'lib';

module.exports = new Rollup(lib, {
  // nodeModulesPath: string Defaults to process.cwd()
  rollup: {
    input: 'lib/index.js',
    output: {
      file: 'my-lib.js',
      format: 'es',
    },
    // cache: true|false Defaults to true
  }
})

\w targets

var Rollup = require('broccoli-rollup');
var lib = 'lib';

module.exports = new Rollup(lib, {
  rollup: {
    input: 'lib/index.js',
    output: [
      {
        file: 'my-lib.amd.js'
        format: 'amd',
      },
      {
        file: 'my-lib.iife.js'
        format: 'iife',
      }
    ]
  }
})