Javascript-Barcode-Reader icon indicating copy to clipboard operation
Javascript-Barcode-Reader copied to clipboard

Dependencies to Node.js packages

Open damianprzygodzki opened this issue 1 year ago • 1 comments

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.

damianprzygodzki avatar Sep 18 '22 10:09 damianprzygodzki

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

mubaidr avatar Sep 20 '22 06:09 mubaidr