rollup-plugin-browser
v0.1.0
Published
Use Rollup as an ES module loader, like a simpler SystemJS
Downloads
5
Readme
rollup-plugin-browser
Use Rollup as a ES module loader, like a simpler SystemJS.
Installation
npm install --save rollup-plugin-browser
Usage
import { rollup } from 'rollup';
import browser from 'rollup-plugin-browser';
rollup({
entry: 'app.js',
plugins: [
browser()
]
}).then( bundle => {
const { code } = bundle.generate({ format: 'iife' });
// go ahead and eval it or something!
( 0, eval )( code );
});
License
MIT