1.0.2 • Published 5 years ago

rollup-plugin-caffeinate v1.0.2

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

rollup-plugin-caffeinate

Integration between Rollup and CoffeeScript 2.

Why?

Allow CoffeeScript code to be included in Rollup bundles without introducing an additional build step.

Installation

npm install --save-dev rollup-plugin-caffeinate

Usage

// rollup.config.js
import caffeinate from 'rollup-plugin-caffeinate'

export default {
  input: 'main.coffee',
  plugins: [caffeinate()]
}

The plugin accepts options.include and options.exclude (each a minimatch pattern, or array of minimatch patterns) to determine which files are compiled by CoffeeScript. By default, all .coffee files are transpiled.