Javascript-Barcode-Reader
Javascript-Barcode-Reader copied to clipboard
Dependencies to Node.js packages
When trying to use together with Webpack >= 5, which is deprecating polyfills for node packages it is not possible to use this lib.
I think, switching this dependecies directly to browserify ones would fix the issues.
Hey!
The only dependency this package has jimp which is used to read image files when this library is imported/used in Nodejs environment.
https://github.com/mubaidr/Javascript-Barcode-Reader/blob/master/src/utilities/getImageDataFromSource.ts#L32
It should work as it is, but you could try adding jimp
to externals
for webpack