Open
Description
Describe the bug
When used with Sharp, errors out with this:
Unable to load preload script: /Users/damms005/Code/github-playground/electron-vite-vue/dist-electron/preload/index.mjs
• Error: module not found: sharp at preloadRequire (VM4 sandbox bundle: 2:82852)
at <anonymous>: 4:15
at runPreloadScript (VM4 sandbox bundle: 2:83516)
at
VM4 sandbox bundle: 2:83813
at
VM4 sandbox bundle:2:83968
at at
electron_webpack_init
(VM4 sandbox bundle:2:83972)
VM4 sandbox bundle:2:84095
& Uncaught TypeError: Cannot read properties of undefined (reading 'on')
Created a repro repo here: https://github.com/damms005/electron-vite-vue-help