mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-25 06:04:54 +00:00
Fix: Inline deleted JSON components to resolve build errors
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user