mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
a7a6aa0c29
Shadow-DOM Lit element that renders the threads drawer: self-contained styles with build-time token sync from react-core's theme, slot projection for custom rows, license/upsell gating, filtering, and a mobile modal. View-state lives on the element; domain state stays with the host. Multi-format build (ESM/CJS externalize lit as a peer dep; UMD inlines lit so the CDN <script> path is self-contained).
25 lines
551 B
JavaScript
25 lines
551 B
JavaScript
import path from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
const dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: "jsdom",
|
|
include: ["**/__tests__/**/*.{test,spec}.ts"],
|
|
passWithNoTests: true,
|
|
globals: true,
|
|
server: {
|
|
deps: {
|
|
inline: ["lit", "@lit/reactive-element", "lit-element", "lit-html"],
|
|
},
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.join(dirname, "src"),
|
|
},
|
|
},
|
|
});
|