Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vite-plugin-electron vs vite-electron-plugin #107

Open
caoxiemeihao opened this issue Nov 11, 2022 · 2 comments
Open

vite-plugin-electron vs vite-electron-plugin #107

caoxiemeihao opened this issue Nov 11, 2022 · 2 comments
Labels
question Further information is requested

Comments

@caoxiemeihao
Copy link
Member

caoxiemeihao commented Nov 11, 2022

vite-plugin-electron vs vite-electron-plugin

  1. They are both very simple. Just a simple configuration of the entry file is all that is needed.
  2. They both listen for changes to the file and execute electron . command to start or restart the Electron App.
  • vite-plugin-electron uses Vite builds such as Main-Process, Preload-Scripts, which are based on the build API provided by Vite, which means it works well with all of Vite's ecosystems.
  • vite-electron-plugin is much faster(Not Bundle), it is only based on esbuild to convert .ts files, so it has very high performance. It has a plugin system that references Vite's implementation, but is not compatible with Vite's plugins.

关于 vite-plugin-electron 与 vite-electron-plugin

  1. 它们都很简单。只是简单的配置入口文件即可。
  2. 它们都是监听了文件的变化,当文件被构建完成或重新构建时执行 electron . 启动或重启 Electron App。
  • vite-plugin-electron 使用 Vite 构建诸如 Main-Process、Preload-Scripts 它们都基于 Vite 提供的 build API。也就是说它能够很好的使用 Vite 的所有生态
  • vite-electron-plugin 更加的快(单文件编译),它仅仅是基于 esbuild 转换 ts 文件,所以它具有非常高的性能。它具有一套参考 Vite 实现的插件系统,但不兼容 Vite 的插件。
@vindecodex
Copy link

Why vite-plugin-electron unable to process vitest integration with playwright ? while vite-electron-plugin works very well ?

@caoxiemeihao
Copy link
Member Author

caoxiemeihao commented Nov 24, 2022

It's embarrassing, I don't know how to use vitest and playwright yet. 😅

Why vite-plugin-electron unable to process vitest integration with playwright ? while vite-electron-plugin works very well ?

@vindecodex Can you provide a minimal Demo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants