1.0.4 • Published 7 years ago

rollup-plugin-init v1.0.4

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

Travis Coveralls Dependencies DevDependencies

Rollup Plugin Init

Transforms your iife bundle into a function waiting to be executed.

It can be executed by calling init()

Transforms iife from:

(function () {
  ... content ...
})();

into:

const init = (function () {
  ... content ...
});

You can then execute the bundled javascript when you are ready by calling:

init()

Usage

import { rollup } from 'rollup';
import init from 'rollup-plugin-init';

rollup({
  entry: 'main.js',
  plugins: [
    init()
  ]
});

To Install from NPM

Install rollup and rollup-plugin-init from npm and save it to your package.json file:

npm install rollup rollup-plugin-init --save-dev
1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago