Skip to content

Commit

Permalink
fix: fix require @react-pdf/primitives from CJS
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Jan 18, 2024
1 parent d8c7b5c commit 894ebdf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/brown-houses-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@react-pdf/primitives': patch
---

Fix require @react-pdf/primitives from CJS
6 changes: 3 additions & 3 deletions packages/primitives/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"author": "Diego Muracciole <[email protected]>",
"homepage": "https://github.com/diegomura/react-pdf#readme",
"type": "module",
"main": "./lib/index.js",
"main": "./lib/index.cjs",
"module": "./src/index.js",
"exports": {
".": {
"import": "./src/index.js",
"require": "./lib/index.js",
"require": "./lib/index.cjs",
"default": "./src/index.js"
}
},
Expand All @@ -21,7 +21,7 @@
"directory": "packages/primitives"
},
"scripts": {
"build": "babel src --out-dir lib",
"build": "babel src --out-dir lib && mv lib/index.js lib/index.cjs",
"test": "NODE_OPTIONS=\"--experimental-vm-modules\" jest"
},
"files": [
Expand Down

0 comments on commit 894ebdf

Please sign in to comment.