Package Exports
- @zeekay/rollup-plugin-coffee
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@zeekay/rollup-plugin-coffee) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@zeekay/rollup-plugin-coffee
A Rollup.js plugin that compiles CoffeeScript. Uses
find-coffee to locate the proper
version of CoffeeScript.
Install
$ npm install @zeekay/rollup-plugin-coffee --save-devUsage
Add the following code to your project's rollup.config.js:
import coffee from '@zeekay/rollup-plugin-coffee';
export default {
entry: 'index.js',
plugins: [
coffee({
// defaults
bare: true,
extensions: ['.coffee', '.litcoffee'],
version: 'auto',
sourceMap: true
})
]
};By default this plugin will use any version of CoffeeScript available, trying to use 2.0 and falling back to 1.0 if necessary.
You can specify version: 1 or version: 2 to ensure a certain version is used
(or error if it's unavailable).
License
MIT