Files
Shaheer KochaiandGitHub 46a92f1dac feat: initial setup for components library
* 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
2024-09-27 20:52:48 +04:30

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()],
});