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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
MIT (http://www.opensource.org/licenses/mit-license.php)