Solve the issue with loosing sourceMaps in Chrome

Fix #193.
This commit is contained in:
Zalmoxisus 2015-12-20 20:15:21 +02:00
parent e400dea310
commit 10db8acea4

View File

@ -67,7 +67,10 @@ function computeNextEntry(reducer, action, state, error) {
nextState = reducer(state, action);
} catch (err) {
nextError = err.toString();
console.error(err.stack || err);
if (typeof window === 'object' && typeof window.chrome !== 'undefined') {
// Solve the issue with loosing sourceMaps in Chrome
setTimeout(() => { throw err; }, 0);
} else console.error(err.stack || err);
}
return {