bbc/expose-loader

Name: expose-loader

Owner: BBC

Description: expose loader module for webpack

Created: 2015-08-26 16:48:17.0

Updated: 2017-01-25 18:02:52.0

Pushed: 2015-09-21 11:37:29.0

Homepage: null

Size: 109

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

expose loader for webpack

Usage
le: {
aders: [
{ test: require.resolve("react"), loader: "expose?React" }


The require.resolve is a node.js call (unrelated to require.resolve in webpack processing – check the node.js docs instead). require.resolve gives you the absolute path to the module (“/…/app/node_modules/react/react.js”). So the expose only applies to the react module. And it's only exposed when used in the bundle.

Documentation: Using loaders

License

MIT (http://www.opensource.org/licenses/mit-license.php)


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.