GitXplorerGitXplorer
V

rollup-plugin-browser

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
c7a2fa6c71f116ddfe5fc32fb4fddef1d91d99fa

Fix usage example

committed 9 years ago
Unverified
02bc8619c64b0bd1beb7c5138b5098978a39407c

Initial commit

committed 9 years ago

README

The README file for this repository.

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