Replies: 1 comment 1 reply
-
I cannot tell if this is a Vite issue and it's probably better to ask to the plugin side https://github.com/electron-vite/vite-plugin-electron That said, what I tried is to externalize electron({
main: {
// Shortcut of `build.lib.entry`.
entry: 'electron/main.ts',
vite: {
build: {
rollupOptions: {
external: ['zeromq'] // 👈👈
}
}
}
},
... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
Hi. I am trying to get an electron project up and running with zeromq, but having bizarre issues:
Please refer tohttps://github.com/zeromq/zeromq.js/issues/676
and webpack/webpack#18995 (reply in thread)
and zeromq/zeromq.js#690
Reproduction
https://github.com/devzzzero/vite-zeromq-bug
Steps to reproduce
see readme.md in the repo
System Info
Used Package Manager
npm
Logs
Validations
Beta Was this translation helpful? Give feedback.
All reactions