inititated shadcn

This commit is contained in:
ManishMadan2882
2024-02-19 04:14:09 +05:30
parent 8cc5e9db13
commit 63878e7ffd
31 changed files with 3159 additions and 3181 deletions

View File

@@ -1,26 +1,12 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import dts from "vite-plugin-dts";
import path from "path";
import path from "path"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
export default defineConfig({
build: {
lib: {
entry: path.resolve(__dirname, "index.ts"),
name: "ViteButton",
fileName: (format) => `index.${format}.js`,
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
rollupOptions: {
external: ["react", "react-dom"],
output: {
globals: {
react: "React",
"react-dom": "ReactDOM",
},
},
},
sourcemap: true,
emptyOutDir: true,
},
plugins: [react(), dts()],
});
})