Skip to content

Commit 801bf46

Browse files
committed
HACK: Hoist all importmap-based elements here to fix lazy import
1 parent f415575 commit 801bf46

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

nicegui/client.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@
1414
from fastapi.templating import Jinja2Templates
1515
from typing_extensions import Self
1616

17+
# HACK: Hoist all importmap-based elements here to fix lazy import
18+
from nicegui.elements.aggrid.aggrid import AgGrid # noqa: F401
19+
from nicegui.elements.codemirror.codemirror import CodeMirror # noqa: F401
20+
from nicegui.elements.echart.echart import EChart # noqa: F401
21+
from nicegui.elements.joystick.joystick import Joystick # noqa: F401
22+
from nicegui.elements.json_editor.json_editor import JsonEditor # noqa: F401
23+
from nicegui.elements.leaflet.leaflet import Leaflet # noqa: F401
24+
from nicegui.elements.mermaid.mermaid import Mermaid # noqa: F401
25+
from nicegui.elements.plotly.plotly import Plotly # noqa: F401
26+
from nicegui.elements.scene.scene import Scene # noqa: F401
27+
1728
from . import background_tasks, binding, core, helpers, json, storage
1829
from .awaitable_response import AwaitableResponse
1930
from .dependencies import generate_resources

0 commit comments

Comments
 (0)