11 lines
658 B
TypeScript
11 lines
658 B
TypeScript
"use client";
|
|
// PEP-217: heavy client pieces that the first view does not need load on demand (next/dynamic,
|
|
// ssr off) — they stay out of the first-load JS of every route.
|
|
import dynamic from "next/dynamic";
|
|
|
|
/** Terminal of a runner (xterm.js and its styles): only when a terminal is opened. */
|
|
export const LazyRunnerTerminal = dynamic(() => import("@/components/RunnerTerminal").then((m) => m.RunnerTerminal), { ssr: false });
|
|
|
|
/** ⌘K palette and shortcuts: there is nothing to draw before the first key press. */
|
|
export const LazyCommandPalette = dynamic(() => import("@/components/CommandPalette").then((m) => m.CommandPalette), { ssr: false });
|