[![npm][npm]][npm-url]
[![deps][deps]][deps-url]
[![chat][chat]][chat-url]

Exports Loader
  <p>Exports variables from inside the file by appending `exports[...] = ...` statements..<p>

Install

```bash
npm i exports-loader --save
```


Usage

``` javascript
require("exports-loader?file,parse=helpers.parse!./file.js");
// adds below code the the file's source:
//  exports["file"] = file;
//  exports["parse"] = helpers.parse;

require("exports-loader?file!./file.js");
// adds below code the the file's source:
//  module.exports = file;
```

[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)

Maintainers

  <tbody>

        Juho Vepsäläinen (https://github.com/bebraw)

        Joshua Wiens (https://github.com/d3viant0ne)

        Kees Kluskens (https://github.com/SpaceK33z)

        Sean Larkin (https://github.com/TheLarkInn)

  <tbody>

[npm]: https://img.shields.io/npm/v/exports-loader.svg
[npm-url]: https://npmjs.com/package/exports-loader

[deps]: https://david-dm.org/webpack-contrib/exports-loader.svg
[deps-url]: https://david-dm.org/webpack-contrib/exports-loader

[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
[chat-url]: https://gitter.im/webpack/webpack
