index.js 292 Bytes
Newer Older
1
// Use require.context to require reducers automatically
2
// Ref: https://webpack.js.org/guides/dependency-management/#require-context
3
const context = require.context('./', false, /\.js$/);
jim's avatar
jim committed
4 5 6 7
export default context
  .keys()
  .filter(item => item !== './index.js')
  .map(key => context(key));