diff --git a/vite.config.ts b/vite.config.ts index 18ee9c8..2e16d35 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,9 +1,9 @@ // vite.config.ts -import { fileURLToPath, URL } from 'node:url'; -import { defineConfig } from 'vite'; -import vue from '@vitejs/plugin-vue'; -import vueDevTools from 'vite-plugin-vue-devtools'; -import path from 'path'; +import { fileURLToPath, URL } from 'node:url' +import { defineConfig } from 'vite' +import vue from '@vitejs/plugin-vue' +import vueDevTools from 'vite-plugin-vue-devtools' +import path from 'path' export default defineConfig({ plugins: [ @@ -24,12 +24,15 @@ export default defineConfig({ formats: ['es', 'umd'], }, rollupOptions: { - external: ['vue'], + external: ['vue', 'primevue', 'vue-router', 'primeicons'], output: { globals: { vue: 'Vue', + primevue: 'PrimeVue', + 'vue-router': 'VueRouter', + primeicons: 'primeicons' }, }, }, }, -}); +})