diff --git a/src/Address.tsx b/src/Address.tsx index 2e1d3bb..891a315 100644 --- a/src/Address.tsx +++ b/src/Address.tsx @@ -29,10 +29,7 @@ import { useAddressesWithCode } from "./useErigonHooks"; import { useChainInfo } from "./useChainInfo"; const AddressTransactionByNonce = React.lazy( - () => - import( - /* webpackChunkName: "addresstxbynonce", webpackPrefetch: true */ "./AddressTransactionByNonce" - ) + () => import("./AddressTransactionByNonce") ); const Address: React.FC = () => { diff --git a/src/App.tsx b/src/App.tsx index 523dc5e..bb8d9aa 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -9,35 +9,13 @@ import { ConnectionStatus } from "./types"; import { RuntimeContext, useRuntime } from "./useRuntime"; import { ChainInfoContext, useChainInfoFromMetadataFile } from "./useChainInfo"; -const Block = React.lazy( - () => import(/* webpackChunkName: "block", webpackPrefetch: true */ "./Block") -); -const BlockTransactions = React.lazy( - () => - import( - /* webpackChunkName: "blocktxs", webpackPrefetch: true */ "./BlockTransactions" - ) -); -const Address = React.lazy( - () => - import(/* webpackChunkName: "address", webpackPrefetch: true */ "./Address") -); -const Transaction = React.lazy( - () => - import(/* webpackChunkName: "tx", webpackPrefetch: true */ "./Transaction") -); -const London = React.lazy( - () => import(/* webpackChunkName: "london" */ "./special/london/London") -); -const Faucets = React.lazy( - () => import(/* webpackChunkName: "faucets" */ "./Faucets") -); -const PageNotFound = React.lazy( - () => - import( - /* webpackChunkName: "notfound", webpackPrefetch: true */ "./PageNotFound" - ) -); +const Block = React.lazy(() => import("./Block")); +const BlockTransactions = React.lazy(() => import("./BlockTransactions")); +const Address = React.lazy(() => import("./Address")); +const Transaction = React.lazy(() => import("./Transaction")); +const London = React.lazy(() => import("./special/london/London")); +const Faucets = React.lazy(() => import("./Faucets")); +const PageNotFound = React.lazy(() => import("./PageNotFound")); const App = () => { const runtime = useRuntime(); diff --git a/src/TransactionPageContent.tsx b/src/TransactionPageContent.tsx index 501ff46..7320a2e 100644 --- a/src/TransactionPageContent.tsx +++ b/src/TransactionPageContent.tsx @@ -13,25 +13,9 @@ import { BlockNumberContext } from "./useBlockTagContext"; import { useAppConfigContext } from "./useAppConfig"; import { useSourcify, useTransactionDescription } from "./sourcify/useSourcify"; -const Details = React.lazy( - () => - import( - /* webpackChunkName: "txdetails", webpackPrefetch: true */ - "./transaction/Details" - ) -); -const Logs = React.lazy( - () => - import( - /* webpackChunkName: "txlogs", webpackPrefetch: true */ "./transaction/Logs" - ) -); -const Trace = React.lazy( - () => - import( - /* webpackChunkName: "txtrace", webpackPrefetch: true */ "./transaction/Trace" - ) -); +const Details = React.lazy(() => import("./transaction/Details")); +const Logs = React.lazy(() => import("./transaction/Logs")); +const Trace = React.lazy(() => import("./transaction/Trace")); type TransactionPageContentProps = { txHash: string;