Skip to content

Commit

Permalink
fix: CJS compatibility in @react-pdf/pdfkit (#2610)
Browse files Browse the repository at this point in the history
Missed that one in #2607!
  • Loading branch information
wojtekmaj authored Feb 6, 2024
1 parent e1d388f commit dc54c13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/silver-poems-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@react-pdf/pdfkit": patch
---

fix: fix CJS compatibility
3 changes: 2 additions & 1 deletion packages/pdfkit/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import pkg from './package.json' assert { type: 'json' };

const cjs = {
exports: 'named',
format: 'cjs'
format: 'cjs',
interop: 'compat'
};

const esm = {
Expand Down

0 comments on commit dc54c13

Please sign in to comment.