samsam2310 / zbar.wasm

A wasm build of C/C++ ZBar barcode scanning library.
GNU Lesser General Public License v2.1
222 stars 30 forks source link

Fix zbar warnings in browser #22

Open joeldhenry opened 1 year ago

joeldhenry commented 1 year ago

zbar has 2 warnings when running in browser - see demo.

Screenshot 2022-11-18 at 1 24 11 pm
samsam2310 commented 1 year ago

This is a workaround for issue webpack/6725

joeldhenry commented 1 year ago

that doesn't seem to resolve the issue (or even compile). my currently web pack implementation is the answer from https://github.com/samsam2310/zbar.wasm/issues/8

samsam2310 commented 1 year ago

The warning is because we use .wasm.bin for the extension of wasm files. This is a workaround for webpack/6725 because if we use .wasm the webpack will try to parse wasm files and ignore the file-loader.

These warning are expected. And I should not cause any issue when using it.