@nordcraft/runtime
v2.0.35
Published
[npm](https://www.npmjs.com/package/@nordcraft/runtime)
Readme
@nordcraft/runtime
The runtime powers the client-side of a Nordcraft application. It is responsible for rendering the application, handling events, and managing the state.
Bundle analysis
The runtime ships esbuild-bundled entry points. To see what contributes to their size, run the analysis script from packages/runtime:
bun run analyze # page.main (opens browser GUI)
bun run analyze custom-element.main
bun run analyze dist/page.main.esm.js
bun run analyze --cli # terminal output only
bun run analyze --cli --verboseAny bundle name, esbuild output file or source entry point can be passed to the script. By default, an interactive visualization (Treemap, Sunburst, Flamegraph) powered by esbuild's bundle analyzer is served and opened in your browser. Use --cli to output only to the terminal, and --verbose for a per-file breakdown.
Note: Sibling packages must be built beforehand (e.g. via
bun run buildat the repository root) so that workspace dependencies such as@nordcraft/corecan be resolved.
