After updating to babel 6 the following:
containers/
game.js
action-creators/
actionCreators.js
asyncActionCreators.js
index.js
actionCreators.js has the following code:
export function x(){}
export function y(){}
asyncActionCreators.js has the following code:
export const j = () => (a, b) => {}
export const k = () => (a, b) => {}
index.js contains the following code:
import _ from 'lodash';
import * as actions from './actionCreators';
import * as asyncActions from './asyncActionCreators';
const Actions = _.assign(actions, asyncActions);
export default Actions;
In game.js I have the following code:
import * as Actions from './../action-creators';
Actions evaluates to:
{
__esModule: true
default: Object
__proto__: Object
}
Can someone explain?