Browse Source

fix: Default Export

Yaavi 1 year ago
parent
commit
5be25e54fb
1 changed files with 5 additions and 0 deletions
  1. 5 0
      vite.config.ts

+ 5 - 0
vite.config.ts

@@ -12,6 +12,11 @@ export default defineConfig(() => ({
       formats: ["umd", "es"],
       fileName: (format) => format == 'umd' ? 'index.min.js' : `index.${format}.js`,
     },
+    rollupOptions: {
+      output: {
+        exports: 'named'
+      }
+    },
   },
   plugins: [
     dts({