index.js 283 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$/);
4
export default context.keys().filter(item => item !== './index.js').map(key => context(key));