@litmdx/core
v0.2.1
Published
Core library for the [LitMDX](https://litmdx.dev) framework. Consumed by `litmdx` (the CLI) — not intended for direct use in end-user projects.
Downloads
56
Readme
@litmdx/core
Core library for the LitMDX framework. Consumed by litmdx (the CLI) — not intended for direct use in end-user projects.
What it provides
defineConfig(config)— type-safe helper forlitmdx.config.tsresolveConfig(user?)— merges user config with defaultsresolveRoutes(glob)— mapsimport.meta.globentries to URL routescreateVitePlugin()— Vite plugin bundle (Tailwind v4, MDX, Shiki)
Exports
import { defineConfig } from '@litmdx/core';
import { createVitePlugin } from '@litmdx/core/vite-plugin';
import { resolveConfig } from '@litmdx/core/config';
import { resolveRoutes } from '@litmdx/core/router';Development
bun run build # compile to dist/
bun run typecheck # type-check without emitting
bun run test # run tests
bun run lint # ESLint