Skip to content

Instantly share code, notes, and snippets.

@rmdort
Last active July 25, 2017 09:31
Show Gist options
  • Select an option

  • Save rmdort/3bd586a29febd3bd1e28bca7f5c3fcaf to your computer and use it in GitHub Desktop.

Select an option

Save rmdort/3bd586a29febd3bd1e28bca7f5c3fcaf to your computer and use it in GitHub Desktop.
expose-loader redux react-redux
{ test: require.resolve("react"), loader: "expose-loader?React" },
{ test: require.resolve("react-dom"), loader: "expose-loader?ReactDOM" },
{
test: /redux\/es\/index.js/,
use: [
{
loader: 'expose-loader',
options: 'Redux'
}
]
},
{
test: /react-redux\/es\/index.js/,
use: [
{
loader: 'expose-loader',
options: 'ReactRedux'
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment