Replies: 4 comments
-
https://electron-vite.org/guide/dev#dependencies-vs-devdependencies |
Beta Was this translation helpful? Give feedback.
-
I have read the documentation and carefully checked the source code. This approach seems to only improve the build speed by reducing the external dependencies that need to be compiled through I think I've found a solution that works for me. I Thank you very much for your reply though. Have a nice day~ 🌹 |
Beta Was this translation helpful? Give feedback.
-
no, you should enable externalizedep plugin that will externalize all dependences that you install in deps, like no bundle. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
This is my current configuration
electron.vite.config.ts
:I tried using
swc
to speed up the build but it didn't work. I also triedswcPlugin
.Currently it takes about two seconds to complete:
Maybe I'm using it the wrong way, please feel free to correct me.
I tried using
tsup
(it is based onesbuild
), which can greatly improve the build speed. It only takes about 100 milliseconds in the end. But this would deviate fromvite
. So I want to know if there is a better way to do the same job as usingesbuild
. Thanks in advance. 🌹tsup.config.ts
:Beta Was this translation helpful? Give feedback.
All reactions