Skip to content

Commit

Permalink
Fix broken imports in browserify-zlib
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Jan 15, 2024
1 parent a8322ec commit 50cc57d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/pdfkit/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ const getPlugins = ({ browser, minify = false }) => [
ignore(['fs']),
alias({
entries: [
// See https://github.com/browserify/browserify-zlib/pull/45
{
find: 'pako/lib/zlib/zstream',
replacement: 'pako/lib/zlib/zstream.js'
},
{
find: 'pako/lib/zlib/constants',
replacement: 'pako/lib/zlib/constants.js'
},
{ find: 'stream', replacement: 'vite-compatible-readable-stream' },
{ find: 'zlib', replacement: 'browserify-zlib' }
]
Expand Down

0 comments on commit 50cc57d

Please sign in to comment.