Skip to content

Commit

Permalink
feat(CV-0-1): cleanup and minification
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-jonathan committed Dec 5, 2023
1 parent 931c95b commit b6458bc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ export default ({ mode }: ConfigEnv): UserConfigExport => {
'@': fileURLToPath(new URL(srcDir, import.meta.url)),
}

const external = [
'lib0/random.js'
]

const plugins = [
dts()
] as PluginOption[]
Expand All @@ -82,6 +86,9 @@ export default ({ mode }: ConfigEnv): UserConfigExport => {
formats,
fileName,
},
rollupOptions: {
external,
},
},
})
}

0 comments on commit b6458bc

Please sign in to comment.