Skip to content
Integration between Rollup and CoffeeScript.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
test Update rollup to 0.50 in tests Oct 11, 2017
.babelrc Use ES6 in tests Dec 28, 2015
.gitignore Ignore lockfiles Oct 11, 2017
LICENSE.txt Update rollup to 0.50 in tests Oct 11, 2017
index.js Update coffeescript to 2.0 Oct 11, 2017
package.json Update dev dependencies Dec 2, 2017


Build Status

Integration between Rollup and CoffeeScript 2.


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


npm install --save-dev rollup-plugin-coffee-script


// rollup.config.js
import coffeescript from 'rollup-plugin-coffee-script';

export default {
  input: '',

  plugins: [

CoffeeScript 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 files are transpiled.

Integration with CommonJS modules

The CoffeeScript plugin doesn't resolve requires. Instead, use rollup-plugin-commonjs and add .coffee to extensions.

import { rollup } from 'rollup';
import commonjs from 'rollup-plugin-commonjs';
import coffee from 'rollup-plugin-coffee-script';
import nodeResolve from 'rollup-plugin-node-resolve';

  input: '',
  plugins: [
    nodeResolve({ extensions: ['.js', '.coffee'] })
      extensions: ['.js', '.coffee']
You can’t perform that action at this time.