Skip to content

Commit

Permalink
fix: force bundle is-svg
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Aug 23, 2023
1 parent 82e5420 commit 5b87bb9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vite.config.ts
Expand Up @@ -4,4 +4,8 @@ export default createLibConfig({
index: 'lib/index.ts',
}, {
libraryFormats: ['es', 'cjs'],
nodeExternalsOptions: {
// Force bundle pure ESM module
exclude: ['is-svg'],
},
})

0 comments on commit 5b87bb9

Please sign in to comment.