babel-plugin-rm-iife

1.0.0 • Public • Published

babel-plugin-rm-iife Build Status

Wrap file with iife.

Install

With npm do:


npm i babel-plugin-rm-iife --D

Example

Input

(() => {
    __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
})();

Output

__webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);

Usage

In your Babel configuration:

{
  "plugins": ["babel-plugin-rm-iife"]
}

Contributing

Pull requests are welcome. If you add functionality, then please add unit tests to cover it.

License

MIT © JayFate

Package Sidebar

Install

npm i babel-plugin-rm-iife

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

4.07 kB

Total Files

4

Last publish

Collaborators

  • jayfate