🎯

bundle-dynamic-imports

🎯Skill

from theorcdev/8bitcn-ui

VibeIndex|
What it does

bundle-dynamic-imports skill from theorcdev/8bitcn-ui

πŸ“¦

Part of

theorcdev/8bitcn-ui(23 items)

bundle-dynamic-imports

Installation

πŸ“‹ No install commands found in docs. Showing default command. Check GitHub for actual instructions.
Quick InstallInstall with npx
npx skills add theorcdev/8bitcn-ui --skill bundle-dynamic-imports
12Installs
1,576
-
Last UpdatedJan 22, 2026

Skill Details

SKILL.md

Use next/dynamic for lazy-loading heavy components. Apply when importing large components like editors, charts, or rich text editors that aren't needed on initial render.

Dynamic Imports for Heavy Components

Use next/dynamic to lazy-load large components not needed on initial render.

Incorrect (Monaco bundles with main chunk ~300KB):

```tsx

import { MonacoEditor } from './monaco-editor'

function CodePanel({ code }: { code: string }) {

return

}

```

Correct (Monaco loads on demand):

```tsx

import dynamic from 'next/dynamic'

const MonacoEditor = dynamic(

() => import('./monaco-editor').then(m => m.MonacoEditor),

{ ssr: false }

)

function CodePanel({ code }: { code: string }) {

return

}

```