import { resolve } from "node:path"; import { defineConfig } from "vite"; import vue from "@vitejs/plugin-vue"; // https://vite.dev/config/ export default defineConfig({ plugins: [vue()], build: { lib: { entry: resolve(__dirname, "src/index.ts"), name: "Locusts", fileName: "locusts", }, rollupOptions: { external: ["vue"], output: { globals: { vue: "Vue", }, }, }, }, });