message: refactor: simplifying the setup of loadable-components
diff: @@ -4,7 +4,7 @@ import { renderToString } from "react-dom/server";
  import { StaticRouter } from "react-router-dom";
  import { renderRoutes, matchRoutes } from "react-router-config";
  import { Provider } from "react-redux";
  -import { ChunkExtractor, ChunkExtractorManager } from "@loadable/server";
  +import { ChunkExtractor } from "@loadable/server";
  import { Helmet } from "react-helmet";
  import chalk from "chalk";
  import { Request, Response, NextFunction } from "express";
  @@ -52,8 +52,7 @@ export default async (
  const extractor = new ChunkExtractor({ statsFile });
  const staticContext: Record<string, any> = {};
  - const App = (
  - <ChunkExtractorManager extractor={extractor}>
  + const App = extractor.collectChunks(
  <Provider store={store}>
  {/* Setup React-Router server-side rendering */}
  <StaticRouter location={req.path} context={staticContext}>
  @@ -62,7 +61,6 @@ export default async (
  {renderRoutes(routes)}
  </StaticRouter>
  </Provider>
  - </ChunkExtractorManager>
  );
  const initialState = store.getState();
  