npm.io
1.0.2 • Published 7 years ago

rollup-plugin-caffeinate

Licence
MIT
Version
1.0.2
Deps
1
Size
4 kB
Vulns
0
Weekly
0

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.

Keywords