You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bytecodePlugin worked perfectly until I added dynamic import to the code. After building the app, the dynamically imported module doesn't function as expected because, in the build result, the dynamic module requires ./index.js. However with bytecodePlugin enabled, the index.js is replaced with the bytecode-loader entry, not the original content. As a result, the dynamic module requires an empty export.
Minimal reproducible example is here, and I have committed the out dir on purpose.
Describe the bug
The
bytecodePlugin
worked perfectly until I added dynamic import to the code. After building the app, the dynamically imported module doesn't function as expected because, in the build result, the dynamic modulerequire
s./index.js
. However withbytecodePlugin
enabled, theindex.js
is replaced with the bytecode-loader entry, not the original content. As a result, the dynamic modulerequire
s an empty export.Minimal reproducible example is here, and I have committed the
out
dir on purpose.Electron-Vite Version
2.3.0
Electron Version
31.0.2
Vite Version
5.3.1
Validations
The text was updated successfully, but these errors were encountered: