mirror of
https://github.com/block/buzz.git
synced 2026-11-09 02:41:57 +00:00
Signed-off-by: Arjun Mahanti <arjun@squareup.com> Co-authored-by: Codex <noreply@openai.com>
33 lines
711 B
TypeScript
33 lines
711 B
TypeScript
import { copyFileSync } from "node:fs";
|
|
import { defineConfig } from "vite";
|
|
export default defineConfig({
|
|
plugins: [
|
|
{
|
|
name: "license-notices",
|
|
apply: "build",
|
|
closeBundle() {
|
|
copyFileSync("THIRD_PARTY_NOTICES.md", "dist/THIRD_PARTY_NOTICES.md");
|
|
copyFileSync("../../LICENSE", "dist/LICENSE");
|
|
},
|
|
},
|
|
],
|
|
build: {
|
|
lib: {
|
|
entry: "src/index.ts",
|
|
formats: ["es"],
|
|
fileName: "index",
|
|
cssFileName: "ui",
|
|
},
|
|
rollupOptions: {
|
|
external: [
|
|
/^react($|\/)/,
|
|
/^react-dom($|\/)/,
|
|
/^@base-ui\//,
|
|
/^lucide-react/,
|
|
/^@daypicker\//,
|
|
/^react-resizable-panels/,
|
|
],
|
|
},
|
|
},
|
|
});
|