import { defineConfig } from "vite";
import packageJson from "./package.json";

export default defineConfig({
  base: "./",
  build: {
    outDir: "./dist",
    lib: {
      entry: "./src/index.ts",
      name: packageJson.name,
      fileName: (format) => `${packageJson.name}.${format}.js`,
    },
  },
});
