Fix: Inline deleted JSON components to resolve build errors

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-18 21:58:04 +00:00
parent 56aeb492e6
commit 1bb2eadbe8
9 changed files with 174 additions and 46 deletions

View File

@@ -1,6 +1,5 @@
import { lazy } from 'react'
import { lazyWithRetry, lazyWithPreload } from '@/lib/lazy-loader'
import { preloadMonacoEditor } from '@/components/molecules'
import componentRegistryConfig from '../../component-registry.json'
type ComponentConfig = {
@@ -31,6 +30,14 @@ type RegistryConfig = {
const config = componentRegistryConfig as RegistryConfig
// Monaco editor preloader - inlined
const preloadMonacoEditor = () => {
console.log('[MONACO] 🎯 Preloading Monaco Editor')
import('@monaco-editor/react')
.then(() => console.log('[MONACO] ✅ Monaco Editor preloaded'))
.catch(err => console.warn('[MONACO] ⚠️ Monaco Editor preload failed:', err))
}
const dependencyPreloaders: Record<string, () => void> = {
preloadMonacoEditor
}