Skip to content

Commit 3c227c7

Browse files
committed
Fix formatting and add missing output configuration in Vite build setup
1 parent 7b27368 commit 3c227c7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

vite.config.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,17 @@ export default defineConfig({
1717
lib: {
1818
entry: resolve(__dirname, 'src/index.ts'),
1919
name: 'VueImagekit',
20-
formats: ['es', 'umd', "cjs"],
20+
formats: ['es', 'umd', 'cjs'],
2121
fileName: format => `index.${format}.js`
2222
},
2323
rollupOptions: {
24-
external: ['vue']
24+
external: ['vue'],
25+
26+
output: {
27+
globals: {
28+
vue: 'Vue',
29+
},
30+
},
2531
}
2632
},
2733
})

0 commit comments

Comments
 (0)