We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e62a174 commit 9bd943bCopy full SHA for 9bd943b
server/renderer/handler.js
@@ -10,7 +10,13 @@ import render from './render';
10
import routes from 'routes';
11
import configureStore from 'store';
12
import App from 'containers/App';
13
-import stats from '../../react-loadable.json';
+import config from '../../config';
14
+
15
+let stats = null;
16
17
+if (config.enableDynamicImports) {
18
+ stats = require('../../react-loadable.json');
19
+}
20
21
export default function handleRender(req, res) {
22
const initialState = {};
0 commit comments