UNPKG

@solfacil/plasma-utils

Version:

- 💚 [Nuxt 3](https://nuxt.com/) - Compatible with Nuxt 3 - 🍞 [BUN](https://bun.sh/) - A fast JavaScript all-in-one toolkit (runtime, bundler, test runner, package manager). - 🔑 [Keycloak](https://www.keycloak.org/) integration. - ⚡️ Vite - Instant HMR.

36 lines (34 loc) 660 B
import vue from '@vitejs/plugin-vue' import path from 'path' import { defineConfig } from 'vite' // https://vitejs.dev/config/ export default defineConfig({ plugins: [ vue({ include: [/\.vue$/], }) as any, ], build: { lib: { entry: path.resolve(__dirname, "src/index.ts"), name: "plasma-utils", fileName: (format) => `plasma-utils.${format}.js`, }, rollupOptions: { external: ["vue"], output: { globals: { vue: "Vue", }, }, }, }, optimizeDeps: { include: ['vue'], }, resolve: { alias: { '@': path.resolve(__dirname, 'src'), }, }, })