rollup-plugin-caffeinate
v1.0.2
Published
Integration between Rollup and CoffeeScript.
Downloads
3
Readme
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.