mirror of
https://github.com/hanzoai/o11y-components.git
synced 2026-10-30 14:54:15 +00:00
* feat: initial setup for components library (#2) * fix: properly inject css in button and input * chore: remove Vite boilerplate style * chore: update repo link in readme * @signoz -> @signozhq * chore: rename packages playground dev script * chore: update readme * chore: wrap input and button classNames in cn * chore: update readme * Update README.md * chore: upgrade storybook and add preview.js
25 lines
549 B
TypeScript
25 lines
549 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import dts from "vite-plugin-dts";
|
|
import { resolve } from "path";
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
lib: {
|
|
entry: resolve(__dirname, "src/index.tsx"),
|
|
name: "theme",
|
|
fileName: (format) => `theme.${format}.js`,
|
|
},
|
|
rollupOptions: {
|
|
external: ["react", "react-dom"],
|
|
output: {
|
|
globals: {
|
|
react: "React",
|
|
"react-dom": "ReactDOM",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
plugins: [react(), dts()],
|
|
});
|