diff options
author | Matthew Strapp <matt@mattstrapp.net> | 2024-10-31 13:28:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-31 13:28:18 -0500 |
commit | 9172bb74d2c03c92902136c1831874337ab394dd (patch) | |
tree | 56f73bed76bba4b55ad622a7a0a6af7713899c7f /src/packages/vue/vite.config.ts | |
parent | refactor: Update eslint configuration (diff) | |
download | locusts-9172bb74d2c03c92902136c1831874337ab394dd.tar locusts-9172bb74d2c03c92902136c1831874337ab394dd.tar.gz locusts-9172bb74d2c03c92902136c1831874337ab394dd.tar.bz2 locusts-9172bb74d2c03c92902136c1831874337ab394dd.tar.lz locusts-9172bb74d2c03c92902136c1831874337ab394dd.tar.xz locusts-9172bb74d2c03c92902136c1831874337ab394dd.tar.zst locusts-9172bb74d2c03c92902136c1831874337ab394dd.zip |
feat: Vue (#37)
---------
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'src/packages/vue/vite.config.ts')
-rw-r--r-- | src/packages/vue/vite.config.ts | 23 |
1 files changed, 23 insertions, 0 deletions
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", + }, + }, + }, + }, +}); |