You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 9, 2020. It is now read-only.
Hey people,
While developing the new scan qr code page, I've came to some problems while trying to do a production build of the project.
Basically Webpack is unable to compile instascan as it tries do compile to ES5 at runtime with Babel.
There's this issue posted long ago with someone that had the same problem: schmich/instascan#42
There's a promise of the lib being released precompiled, but seems the project is dead, and the author isn't taking much care anymore: schmich/instascan#153
Another problem is the size of this library, reaching unbelievable 1.28 mega bytes, which are basically a copy paste of a JS version of a lib called zxing (there's a npm package zxing-js but I'm not sure if this code is from there).
I was just looking into this for our own app and while instascan is scanning a lot more reliably/quickly than an older library we replaced I'm also worried about the library size and lack of recent maintenance.
I hope you don't mind me watching this thread to get some hints on implementing the camera capture with jsQR which seems promising.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey people,
While developing the new scan qr code page, I've came to some problems while trying to do a production build of the project.
Basically Webpack is unable to compile
instascan
as it tries do compile to ES5 at runtime with Babel.There's this issue posted long ago with someone that had the same problem:
schmich/instascan#42
There's a promise of the lib being released precompiled, but seems the project is dead, and the author isn't taking much care anymore:
schmich/instascan#153
Another problem is the size of this library, reaching unbelievable 1.28 mega bytes, which are basically a copy paste of a JS version of a lib called zxing (there's a npm package zxing-js but I'm not sure if this code is from there).
So, there's a light alternative for it:
https://github.com/cozmo/jsQR
Or we can just go for the zxing-js:
https://github.com/zxing-js/library
In both cases, we'll need to implement the camera capture and pass it to the libs, not something so hard.
For sure we need to move away from Instascan as it is a blocker, so what you guys say?
The text was updated successfully, but these errors were encountered: