react-pdf icon indicating copy to clipboard operation
react-pdf copied to clipboard

`@react-pdf/renderer`: Support CommonJS Exports Again

Open CodeSmith32 opened this issue 1 year ago • 0 comments

Specific to package: @react-pdf/renderer

Is your feature request related to a problem? Please describe. Our environment is poorly built. We will eventually restructure, but in the meantime, it emits CommonJS files. At the moment, because of the drop in support for CommonJS exports since v4.0.0, we are unable to use 4.0.0 and we had to downgrade to 3.4.5 due to a number of interop issues.

Describe the solution you'd like Please provide the .cjs files in the /lib/ directory again. Compared to version 3.4.5 which has all the files below, please re-add the files pointed out which were removed as of 4.0.0:

react-pdf.browser.cjs       <---
react-pdf.browser.cjs.map   <---
react-pdf.browser.d.cts
react-pdf.browser.d.ts
react-pdf.browser.js
react-pdf.browser.js.map
react-pdf.browser.min.cjs   <---
react-pdf.browser.min.d.cts
react-pdf.browser.min.d.ts
react-pdf.browser.min.js
react-pdf.cjs               <---
react-pdf.cjs.map           <---
react-pdf.d.cts
react-pdf.d.ts
react-pdf.js
react-pdf.js.map
react-pdf.min.cjs           <---
react-pdf.min.d.cts
react-pdf.min.d.ts
react-pdf.min.js

Describe alternatives you've considered I had to downgrade to v3.4.5 until these are supported again.

Additional context N/A

CodeSmith32 avatar Oct 16 '24 17:10 CodeSmith32