Remove webpack annotations
This commit is contained in:
parent
3bede6d90b
commit
ae619a5d9e
@ -29,10 +29,7 @@ import { useAddressesWithCode } from "./useErigonHooks";
|
|||||||
import { useChainInfo } from "./useChainInfo";
|
import { useChainInfo } from "./useChainInfo";
|
||||||
|
|
||||||
const AddressTransactionByNonce = React.lazy(
|
const AddressTransactionByNonce = React.lazy(
|
||||||
() =>
|
() => import("./AddressTransactionByNonce")
|
||||||
import(
|
|
||||||
/* webpackChunkName: "addresstxbynonce", webpackPrefetch: true */ "./AddressTransactionByNonce"
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const Address: React.FC = () => {
|
const Address: React.FC = () => {
|
||||||
|
36
src/App.tsx
36
src/App.tsx
@ -9,35 +9,13 @@ import { ConnectionStatus } from "./types";
|
|||||||
import { RuntimeContext, useRuntime } from "./useRuntime";
|
import { RuntimeContext, useRuntime } from "./useRuntime";
|
||||||
import { ChainInfoContext, useChainInfoFromMetadataFile } from "./useChainInfo";
|
import { ChainInfoContext, useChainInfoFromMetadataFile } from "./useChainInfo";
|
||||||
|
|
||||||
const Block = React.lazy(
|
const Block = React.lazy(() => import("./Block"));
|
||||||
() => import(/* webpackChunkName: "block", webpackPrefetch: true */ "./Block")
|
const BlockTransactions = React.lazy(() => import("./BlockTransactions"));
|
||||||
);
|
const Address = React.lazy(() => import("./Address"));
|
||||||
const BlockTransactions = React.lazy(
|
const Transaction = React.lazy(() => import("./Transaction"));
|
||||||
() =>
|
const London = React.lazy(() => import("./special/london/London"));
|
||||||
import(
|
const Faucets = React.lazy(() => import("./Faucets"));
|
||||||
/* webpackChunkName: "blocktxs", webpackPrefetch: true */ "./BlockTransactions"
|
const PageNotFound = React.lazy(() => import("./PageNotFound"));
|
||||||
)
|
|
||||||
);
|
|
||||||
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 App = () => {
|
const App = () => {
|
||||||
const runtime = useRuntime();
|
const runtime = useRuntime();
|
||||||
|
@ -13,25 +13,9 @@ import { BlockNumberContext } from "./useBlockTagContext";
|
|||||||
import { useAppConfigContext } from "./useAppConfig";
|
import { useAppConfigContext } from "./useAppConfig";
|
||||||
import { useSourcify, useTransactionDescription } from "./sourcify/useSourcify";
|
import { useSourcify, useTransactionDescription } from "./sourcify/useSourcify";
|
||||||
|
|
||||||
const Details = React.lazy(
|
const Details = React.lazy(() => import("./transaction/Details"));
|
||||||
() =>
|
const Logs = React.lazy(() => import("./transaction/Logs"));
|
||||||
import(
|
const Trace = React.lazy(() => import("./transaction/Trace"));
|
||||||
/* 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"
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
type TransactionPageContentProps = {
|
type TransactionPageContentProps = {
|
||||||
txHash: string;
|
txHash: string;
|
||||||
|
Loading…
Reference in New Issue
Block a user