Vaadin 14 tiff.min.js - external Java script library web pack issue

Hi

I am building micro front-end application using vaadin 14 by refering https://github.com/Artur-/iot.

As mentioned in the iot application, I have modified webpack.config.js - to create a bundle to filter the components.

Now I would like to use https://github.com/seikichi/tiff.js in my application to render tiff images.

Please find the attachment for tiff.min.js, tiff-loader.js and webpack.config.js.

When I do mvn clean install, I am getting the webpack error,

ERROR in ./src/tiff-loader.js?babel-target=es5
Module not found: Error: Can't resolve 'tiff.min.js?babel-target=es5' in 'C:\......\frontend\src'
 @ ./src/tiff-loader.js?babel-target=es5 1:14-36
 @ ../target/frontend/generated-flow-imports.js-filtered.js?babel-target=es5
ERROR in ./src/tiff-loader.js?babel-target=es6
Module not found: Error: Can't resolve 'tiff.min.js?babel-target=es6' in 'C:\.....\frontend\src'
 @ ./src/tiff-loader.js?babel-target=es6 1:14-36
 @ ../target/frontend/generated-flow-imports.js-filtered.js?babel-target=es6

Could you please help me to resolve the issue?

Thanks
Uvaraj Seerangan

18455888.js (1.5 MB)
18455891.js (72 Bytes)
18455894.js (2.46 KB)

Any help on this??