UNPKG

vs-fix-sourcemaps

Version:

A Webpack plugin that fixes javascript sourcemaps in Visual Studio (2015), allowing for JSX and JS debugging directly in Visual Studio.

29 lines (25 loc) 471 B
// #region ---- ACTION TYPES ---- const namespace = 'MAIN/'; const LOAD = `${namespace}LOAD`; const initialState = { isFetching: true }; export function mainReducer(state = initialState, action) { switch (action.type) { case LOAD: return { ...state, isFetching: false }; default: return state; } } export const actionCreators = { load: () => { console.log('loading..'); return { type: LOAD }; } };