mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-06 21:53:57 -05:00
Updated some configs
This commit is contained in:
@@ -4,6 +4,7 @@ import react from "@vitejs/plugin-react";
|
||||
import { resolve } from "path";
|
||||
import { defineConfig } from "vite";
|
||||
import dts from "vite-plugin-dts";
|
||||
import { dependencies } from "./package.json";
|
||||
|
||||
|
||||
// https://vite.dev/config/
|
||||
@@ -17,7 +18,8 @@ export default defineConfig({
|
||||
tailwindcss(),
|
||||
dts({
|
||||
include: ["lib"],
|
||||
tsconfigPath: "./tsconfig.lib.json"
|
||||
tsconfigPath: "./tsconfig.lib.json",
|
||||
outDir: "dist/types"
|
||||
})
|
||||
],
|
||||
resolve: {
|
||||
@@ -37,19 +39,15 @@ export default defineConfig({
|
||||
modal: resolve(__dirname, "lib/component/modal.ts"),
|
||||
nav: resolve(__dirname, "lib/component/nav.ts"),
|
||||
tab: resolve(__dirname, "lib/component/tab.ts"),
|
||||
theme: resolve(__dirname, "lib/component/theme.ts"),
|
||||
toaster: resolve(__dirname, "lib/component/toaster.ts")
|
||||
},
|
||||
formats: [ "es" ],
|
||||
name: "Mattrixwv Component Library"
|
||||
},
|
||||
rollupOptions: {
|
||||
external: [
|
||||
"clsx",
|
||||
"react",
|
||||
"react/jsx-runtime",
|
||||
"tailwindcss",
|
||||
"react-icons/bs",
|
||||
"react-router-dom",
|
||||
"@headlessui/react"
|
||||
Object.keys(dependencies).join("|")
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user