A rollup plugin for compiling Surplus JSX views.
> npm install --save-dev rollup-plugin-surplus
Specify suplus()
in the plugins
property of your config.
Simple example:
// rollup.config.js
import surplus from 'rollup-plugin-surplus';
import resolve from 'rollup-plugin-node-resolve';
export default {
entry: 'main.js',
dest: 'dist/main.js',
format: 'iife',
plugins: [
surplus(),
resolve({ extensions: ['.js', '.jsx'] })
]
};