From 9c12eebe682bd178009fc904fbe4bda48e156ada Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Sun, 7 Apr 2019 01:59:27 +0200 Subject: [PATCH] [docs] Fix the docs in dev mode for IE 11 (#15230) --- babel.config.js | 2 +- docs/src/modules/redux/initRedux.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/babel.config.js b/babel.config.js index c3d4af718b0adf..b74aabb4614070 100644 --- a/babel.config.js +++ b/babel.config.js @@ -87,7 +87,7 @@ module.exports = { ], }, 'docs-development': { - presets: ['@zeit/next-typescript/babel'], + presets: ['next/babel', '@zeit/next-typescript/babel'], plugins: [ 'babel-plugin-preval', [ diff --git a/docs/src/modules/redux/initRedux.js b/docs/src/modules/redux/initRedux.js index fba961786a8b9e..ef8e0668bc8253 100644 --- a/docs/src/modules/redux/initRedux.js +++ b/docs/src/modules/redux/initRedux.js @@ -22,7 +22,8 @@ function create(initialState) { process.env.NODE_ENV !== 'production' && process.browser && !window.__REDUX_DEVTOOLS_EXTENSION__ && - Object.assign // redux-logger needs this feature + // redux-logger needs this feature + Object['assign'] // eslint-disable-line dot-notation ) { // eslint-disable-next-line global-require const createLogger = require('redux-logger').createLogger;