exports-loader
exports loader module for webpack
Last updated 2 years ago by michael-ciniawsky .
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 271
This Week 2,047
This Month 4,771
Last Day 445
Last Week 2,650
Last Month 10,556
Dependencies (2)
Dev Dependencies (1)
Dependents (390)

Copyright 2014 - 2016 © taobao.org |