使用index.js从“ / folder”导入javascript

我注意到一些情况下,我看到以下内容:

// /reducers/reducer1.js
export default function reducer1(state = {}, action){
  // etc...
}
  
// /reducers/reducer2.js
export default function reducer2(state = {}, action){
  // etc...
}

// /reducers/index.js
import { combineReducers } from 'redux';
import reducer1 from './reducer1';
import reducer2 from './reducer2';

export default combineReducers({
  reducer1,
  reducer2
})
  
// /store.js
import masterReducer from './reducers';

export default function makeStore(){
  // etc...
}

注意我们调用的最后一个“文件” import masterReducer from './reducers'-一些人似乎认为这应该default export从index.js文件导入

这实际上是规范的一部分吗?-我的解释/问题是,这是许多人使用WebPack v1将结果转换import为CommonJS样式的requires语句的结果吗?还是在带有“官方” import/ export支持的WebPack v2中打破