seikichi / tiff.js

tiff.js is a port of LibTIFF by compiling the LibTIFF C code with Emscripten.
Other
387 stars 98 forks source link

Vite Build Warnings #73

Open sanchawebo opened 1 year ago

sanchawebo commented 1 year ago

When building a bundle with vite and tiff.js, vite outputs the following warnings: [plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/Users/mpr05/Webseiten/gefakoplus/node_modules/tiff.js/tiff.min.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.

[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/Users/mpr05/Webseiten/gefakoplus/node_modules/tiff.js/tiff.min.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.

[plugin:vite:resolve] Module "crypto" has been externalized for browser compatibility, imported by "/Users/mpr05/Webseiten/gefakoplus/node_modules/tiff.js/tiff.min.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.

And these: node_modules/tiff.js/tiff.min.js (79:150) Use of eval in "node_modules/tiff.js/tiff.min.js" is strongly discouraged as it poses security risks and may cause issues with minification.

node_modules/tiff.js/tiff.min.js (113:452) Use of eval in "node_modules/tiff.js/tiff.min.js" is strongly discouraged as it poses security risks and may cause issues with minification.

What can i do to remedy this?