exports loader module for webpack
JavaScript
Latest commit 5681d9e Feb 21, 2017 @d3viant0ne d3viant0ne committed on GitHub Merge pull request #11 from webpack-contrib/d3viant0ne-JSFMaintainers
docs(readme): udpates for JSF maintainers

README.md

npm deps chat

Exports Loader

Exports variables from inside the file by appending `exports[...] = ...` statements..

Install

npm i exports-loader --save

Usage

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

Maintainers


Juho Vepsäläinen

Joshua Wiens

Kees Kluskens

Sean Larkin