Open arunstan opened 1 year ago
Just wanted to bump this as well. I'm getting an error on Buffer being undefined. I'm trying to bundle with tsup instead of babel and tsc previously which was working but Buffer
isn't getting polyfilled unfortunately.
having the same issue with Buffer being undefined
Hello,
I working on an app handling GIS shape files. To support shape files, I am using a package called shpjs which in turn uses jszip. Both of them depend on nodejs Buffer.
I am trying to use the
node-stdlib-browser
package to polyfillBuffer
but have not been successful.Please see my tsup config below:
But still I get an error in JSZip.
Am I setting up polyfill correctly?
Upvote & Fund