UNPKG

angular2-hmr

Version:

angular2-hmr: Hot Module Replacement for Webpack and Angular 2

9 lines 329 B
"use strict"; exports.hmrReducer = function (appReducer) { return function (state, _a) { var type = _a.type, payload = _a.payload; switch (type) { case 'HMR_SET_STATE': return payload; default: return appReducer(state, { type: type, payload: payload }); } }; }; //# sourceMappingURL=hmr-reducer.js.map