perf(core): 코어 번들 3분할로 초기 로딩 최적화

레이아웃 편집기·개발자 진단도구를 코어 번들에서 분리해 각각
편집 화면 진입 시·디버그 모드 시에만 지연 로드하도록 변경.
초기 접속 gzip payload 458KB → 221KB (52% 감소).

lazy 번들은 window.G7Core.__runtime 으로 코어 런타임을 공유해
React/컨텍스트/싱글톤 단일 인스턴스를 보장(재번들 0중복).
코어 7.0.1 bump.
This commit is contained in:
HeuJung committed 2026-07-01 17:05:15 +09:00
1 parent 917bfb603a
commit 32251b2a1d
42 files changed
+3091 -1653

No files matched your search

+5
View File
@@ -5,6 +5,11 @@
"scripts": {
"build": "vite build",
"build:core": "vite build --config vite.config.core.js",
"build:core-editor": "vite build --config vite.config.editor.js",
"build:core-devtools": "vite build --config vite.config.devtools.js",
"build:core-watch": "vite build --config vite.config.core.js --watch",
"build:core-editor-watch": "vite build --config vite.config.editor.js --watch",
"build:core-devtools-watch": "vite build --config vite.config.devtools.js --watch",
"dev": "vite",
"test": "vitest",
"test:ui": "vitest --ui",