Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 592 Bytes

README.md

File metadata and controls

27 lines (23 loc) · 592 Bytes

rollup-plugin-surplus

A rollup plugin for compiling Surplus JSX views.

How to install

> npm install --save-dev rollup-plugin-surplus

How to use

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'] })
    ]
};