ngx-scanner icon indicating copy to clipboard operation
ngx-scanner copied to clipboard

Lazy loading of ngx scanner

Open alfabetagama opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. When compiling for production in ionic/angular zxing libraries are compiled into main/vendor js. Since this is pretty large library it would be nice if libraries could be lazy loaded with local module that is using them.

Describe the solution you'd like When using ngx-scanner i would like support for lazy loading for module and dependent libraries

Describe alternatives you've considered Using browser and library without ngx scanner module.

Additional context In this example we have two large modules that are not necessary at app boot: zxing and chartjs. Chart js is lazy loaded separately and zxing library is part of main.js image

alfabetagama avatar Feb 02 '22 10:02 alfabetagama