import "vite-plus/test/config"; import { defineConfig } from "vite-plus"; import * as NodeURL from "node:url"; /** Import restrictions every file keeps, including the one module exempt from the glyph rule. */ const RESTRICTED_IMPORT_PATHS = [ { name: "@t3tools/client-runtime", message: "Import from an explicit @t3tools/client-runtime/* subpath. The package has no root export.", }, { name: "@pierre/diffs/react", importNames: ["CodeView"], message: "Use StyledDiffCodeView so web diff surfaces share styling and virtualized geometry.", }, ]; /** * The cva functions behind components/ui exports. They style a foreign element to look * like a Button or Toggle, which bypasses the component's variants; render the component * instead (`render={