From 9bd15a54d7d5a1482785f1b74078980c2a6d4a44 Mon Sep 17 00:00:00 2001 From: Apotheosis <0xapotheosis@gmail.com> Date: Wed, 7 Jan 2026 09:42:39 +1100 Subject: [PATCH] fix: add starknet code splitting to reduce bundle size --- vite.config.mts | 1 + 1 file changed, 1 insertion(+) diff --git a/vite.config.mts b/vite.config.mts index b8880485489..79406fea2a4 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -222,6 +222,7 @@ export default defineConfig(({ mode }) => { if (id.match(/(dayjs|lodash|@formatjs)/)) return 'utils' if (id.match(/(@redux|@tanstack)/)) return 'state' if (id.match(/(@metaplex-foundation|@solana)/)) return 'solana' + if (id.match(/(starknet|@avnu|@starknet-io)/)) return 'starknet' if (id.match(/(@sentry|mixpanel|@moralisweb3|moralis)/)) return 'sdk' if (id.match(/(embla-carousel)/)) return 'carousel' if (id.includes('lightweight-charts')) return 'charts'