/** * Build config for @starsinc1708/dsh-tool-council. * * Two passes: * 1. host — four ESM entries (`index`, `tool`, `types`, `invariant`) bundled * from `src/`, externalizing every npm dependency and Node builtin. The * `.d.ts` tree is produced separately by `tsc -p tsconfig.json`. * 2. client — the browser settings card, bundled into the `__ModuleLoader__` * lazy-CJS format the client module system consumes * (`window.__ModuleLoader__.load({ id, factory })`). The id is the bare * package name, because the loader serves a package's browser bundle only * under its own name. * * CSS modules are handled here (Lightning-free): each `*.module.css` import * becomes a deterministic class-name map plus a one-shot `