Vite Build Warnings
Opened this issue · 0 comments
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?