Skip to content

Conversation

gazab
Copy link
Contributor

@gazab gazab commented Jan 4, 2018

When using expose-loader with later versions of Webpack you need to keep -loader in the name like this:
var Components = require('expose-loader?Components!./components');
instead of
var Components = require('expose?Components!./components');

This PR updates the docs with this change since most people needing this won't use Webpack 1.

@dustinsoftware
Copy link
Member

lgtm

@dustinsoftware dustinsoftware merged commit fcf35f6 into reactjs:master Jan 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants