UNPKG

ranui

Version:

A framework-agnostic Web Components UI library built on native custom elements, with TypeScript types, light/dark theming, SSR and PWA support.

32 lines (31 loc) 1.39 kB
import type { BuildOptions, UserConfig } from 'vite'; /** * Resolution for the **single-file** outputs (CJS + IIFE bundles, and the standalone * per-component IIFE files). These formats cannot code-split, so an import of `shiki` * would inline its entire grammar set — ~600 languages, tens of megabytes — into one * file. The web bundle carries the ~50 most common languages instead, which is what * makes a `<script src>` drop-in viable at all. * * The per-component **ES** build does not use this: there `shiki` stays whole and every * language becomes its own lazy chunk, so a consumer downloads only what a code fence * actually asks for. `ranui/markdown` is therefore the entry to prefer. */ export declare const singleFileResolve: { alias: ({ find: string; replacement: string; } | { find: RegExp; replacement: string; })[]; extensions: string[]; }; export declare const bundle: BuildOptions; /** Every web component, keyed by its public entry name. Single source of truth: * the per-component ES build below and the per-component IIFE build * (bin/build-iife.ts) both derive their entry lists from this map. */ export declare const componentEntries: Record<string, string>; export declare const es: BuildOptions; export declare const viteConfig: UserConfig; declare const _default: UserConfig; export default _default;