Use Browserify transforms with Rollup
Switch branches/tags
Nothing to show
Clone or download
Latest commit 83a9202 Dec 2, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Use Rollup for build Jan 30, 2016
test Update rollup to 0.50.0 Oct 11, 2017
.babelrc Use Rollup for build Jan 30, 2016
.gitignore Add yarn and npm lockfiles to gitignore Oct 11, 2017
.travis.yml Update CI node.js versions Oct 11, 2017
LICENSE.txt Setup project Jan 28, 2016
README.md Setup project Jan 28, 2016
package.json Bump version to 1.0.1 Dec 2, 2017
rollup.config.js Fix external script warnings Oct 11, 2017

README.md

rollup-plugin-browserify-transform

Build Status

Use any Browserify transform with Rollup.

Why?

There isn't an equivalent for every Browserify transform as Rollup plugin.

Installation

npm install --save-dev rollup-plugin-browserify-transform

Usage

// rollup.config.js
import browserifyPlugin from 'rollup-plugin-browserify-transform'
import brfs from 'brfs'

export default {
  entry: 'main.coffee',

  plugins: [
    browserifyPlugin(brfs)
  ]
}

Browserify transform plugin accepts options.include and options.exclude (each a minimatch pattern, or an array of minimatch patterns) to determine which files are handled by the Browserify transform. By default, all files are transpiled.

You can give Browserify transform options through a second argument.

// rollup.config.js
import browserifyPlugin from 'rollup-plugin-browserify-transform'
import coffeeify from 'coffeeify'

export default {
  entry: 'main.coffee',

  plugins: [
    browserifyPlugin(coffeeify, { bare: true })
  ]
}