Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
kolirt committed Nov 17, 2024
1 parent 5154fb7 commit c85ba9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vite.lib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ export default defineConfig({
},
emptyOutDir: true,
rollupOptions: {
external: [...Object.keys(pkg.dependencies)],
external: Object.keys({ ...pkg.dependencies, ...pkg.devDependencies }),
output: {
globals: {
...(() => {
const obj: Record<string, string> = {}
Object.keys(pkg.dependencies).forEach((key) => {
Object.keys({ ...pkg.dependencies, ...pkg.devDependencies }).forEach((key) => {
obj[key] = key
})
return obj
Expand Down

0 comments on commit c85ba9b

Please sign in to comment.