1.1.0 • Published 10 years ago
babel-plugin-iife-wrap v1.1.0
babel-plugin-iife-wrap 
Wrap file with iife.
Install
With npm do:
npm i babel-plugin-iife-wrap --DExample
Input
window.a = 1;Output
;(function () {
window.a = 1;
}());Usage
In your Babel configuration:
{
"plugins": ["iife-wrap"]
}Contributing
Pull requests are welcome. If you add functionality, then please add unit tests to cover it.
License
MIT © Bogdan Chadkin