diff --git a/vite.config.ts b/vite.config.ts index 63b2e28..29e5367 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -8,7 +8,9 @@ export default defineConfig({ build: { lib: { name: 'Fexios', - fileName: 'index', + fileName: (format) => { + return format === 'es' ? 'index.mjs' : `index.${format}.js` + }, entry: resolve(__dirname, 'src/index.ts'), formats: ['umd', 'es', 'iife'], },