bundle-barrel-imports
✓배럴 파일 대신 소스 파일에서 직접 가져옵니다. lucide-react, @mui/material 또는 @radix-ui/react-*와 같은 라이브러리를 사용할 때 적용하여 번들 크기를 줄이고 개발 부팅 시간을 개선하세요.
SKILL.md
Import directly from source files instead of barrel files to avoid loading thousands of unused modules. Barrel files are entry points that re-export multiple modules (e.g., index.js that does export from './module').
Popular icon and component libraries can have up to 10,000 re-exports in their entry file. For many React packages, it takes 200-800ms just to import them, affecting both development speed and production cold starts.
Why tree-shaking doesn't help: When a library is marked as external (not bundled), the bundler can't optimize it. If you bundle it to enable tree-shaking, builds become substantially slower analyzing the entire module graph.
배럴 파일 대신 소스 파일에서 직접 가져옵니다. lucide-react, @mui/material 또는 @radix-ui/react-*와 같은 라이브러리를 사용할 때 적용하여 번들 크기를 줄이고 개발 부팅 시간을 개선하세요. 출처: theorcdev/8bitcn-ui.
인용 가능한 정보
AI/검색 인용용 안정적인 필드와 명령어.
- 설치 명령어
npx skills add https://github.com/theorcdev/8bitcn-ui --skill bundle-barrel-imports- 카테고리
- *크리에이티브
- 인증됨
- ✓
- 최초 등록
- 2026-02-01
- 업데이트
- 2026-02-18
빠른 답변
bundle-barrel-imports이란?
배럴 파일 대신 소스 파일에서 직접 가져옵니다. lucide-react, @mui/material 또는 @radix-ui/react-*와 같은 라이브러리를 사용할 때 적용하여 번들 크기를 줄이고 개발 부팅 시간을 개선하세요. 출처: theorcdev/8bitcn-ui.
bundle-barrel-imports 설치 방법은?
터미널 또는 명령줄 도구(Terminal, iTerm, Windows Terminal 등)를 엽니다 이 명령어를 복사하여 실행합니다: npx skills add https://github.com/theorcdev/8bitcn-ui --skill bundle-barrel-imports 설치 후 스킬은 자동으로 AI 코딩 환경에 설정되어 Claude Code나 Cursor에서 사용할 수 있습니다
소스 저장소는 어디인가요?
https://github.com/theorcdev/8bitcn-ui
상세
- 카테고리
- *크리에이티브
- 출처
- skills.sh
- 최초 등록
- 2026-02-01