# babel-plugin-iife-wrap **Repository Path**: mirrors_TrySound/babel-plugin-iife-wrap ## Basic Information - **Project Name**: babel-plugin-iife-wrap - **Description**: Babel plugin to wrap file with iife - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2025-09-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # babel-plugin-iife-wrap [![Build Status](https://travis-ci.org/TrySound/babel-plugin-iife-wrap.svg?branch=master)](https://travis-ci.org/TrySound/babel-plugin-iife-wrap) > Wrap file with iife. ## Install With [npm](https://npmjs.org/package/babel-plugin-iife-wrap) do: ``` npm i babel-plugin-iife-wrap --D ``` ## Example ### Input ```js window.a = 1; ``` ### Output ```js ;(function () { window.a = 1; }()); ``` ## Usage In your Babel configuration: ```json { "plugins": ["iife-wrap"] } ``` _Note that Webpack outputs a bundle wrapped with iife by default._ ## Contributing Pull requests are welcome. If you add functionality, then please add unit tests to cover it. ## License MIT © [Bogdan Chadkin](https://github.com/trysound)