From 9172bb74d2c03c92902136c1831874337ab394dd Mon Sep 17 00:00:00 2001 From: Matthew Strapp Date: Thu, 31 Oct 2024 13:28:18 -0500 Subject: feat: Vue (#37) --------- Signed-off-by: Matt Strapp --- src/packages/vue/vite.config.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/packages/vue/vite.config.ts (limited to 'src/packages/vue/vite.config.ts') diff --git a/src/packages/vue/vite.config.ts b/src/packages/vue/vite.config.ts new file mode 100644 index 0000000..c1b4415 --- /dev/null +++ b/src/packages/vue/vite.config.ts @@ -0,0 +1,23 @@ +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", + }, + }, + }, + }, +}); -- cgit v1.2.3