build: Add async chunk names (#2170)

This commit is contained in:
Viorel Cojocaru
2021-06-04 07:01:23 +02:00
committed by GitHub
parent 1f49b35c89
commit 082ced3072
7 changed files with 34 additions and 11 deletions

View File

@@ -12,7 +12,9 @@ import Time from "components/Time";
import useCurrentUser from "hooks/useCurrentUser";
import UserMenu from "menus/UserMenu";
const Table = React.lazy<TableProps>(() => import("components/Table"));
const Table = React.lazy<TableProps>(() =>
import(/* webpackChunkName: "table" */ "components/Table")
);
type Props = {|
...$Diff<TableProps, { columns: any }>,