exports-loader
exports loader module for webpack
Last updated 3 years ago by d3viant0ne .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install exports-loader 
SYNC missed versions from official npm registry.

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 to the file's source:
//  exports["file"] = file;
//  exports["parse"] = helpers.parse;

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

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

Maintainers


Juho Vepsäläinen

Joshua Wiens

Kees Kluskens

Sean Larkin

Current Tags

  • 0.7.0                                ...           latest (2 years ago)

8 Versions

  • 0.7.0                                ...           2 years ago
  • 0.6.4                                ...           3 years ago
  • 0.6.3                                ...           4 years ago
  • 0.6.2                                ...           6 years ago
  • 0.6.1                                ...           7 years ago
  • 0.6.0                                ...           7 years ago
  • 0.5.0                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
Downloads
Today 21
This Week 820
This Month 8,143
Last Day 427
Last Week 2,578
Last Month 7,616
Dependencies (2)
Dev Dependencies (0)
None
Dependents (401)

Copyright 2014 - 2017 © taobao.org |