vite-plugin-electron
Advanced tools
Comparing version 0.28.0-beta.2 to 0.28.0-beta.3
@@ -54,3 +54,3 @@ "use strict"; | ||
// Note, however, that `preload.ts` should not be split. ๐ง | ||
format: "cjs", | ||
format: esmodule ? "esm" : "cjs", | ||
// Whether Node.js is enabled in the Main process or not, the Preload scripts supports loading `electron` module, | ||
@@ -57,0 +57,0 @@ // so we need to build it in `cjs` format. |
{ | ||
"name": "vite-plugin-electron", | ||
"version": "0.28.0-beta.2", | ||
"version": "0.28.0-beta.3", | ||
"description": "Electron ๐ Vite", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -105,3 +105,3 @@ <p align="center"> | ||
In most cases, it is recommended that you use the simpler `vite-plugin-electron/simple` API. If you know very well how this plugin works or you want to use `vite-plugin-electron` as a secondary encapsulation of low-level API, then the flat API is more suitable for you. It is also simple but more flexible. :) | ||
In most cases, the `vite-plugin-electron/simple` API is recommended. If you know very well how this plugin works or you want to use `vite-plugin-electron` API as a secondary encapsulation of low-level API, then the flat API is more suitable for you. It is also simple but more flexible. :) | ||
@@ -122,2 +122,8 @@ The difference compared to the simple API is that it does not identify which entry represents `preload` and the adaptation to preload. | ||
## Flat API vs Simple API | ||
- Simple API is based on the Flat API | ||
- Simple API incluess some Preload scripts preset configs. | ||
- Flat API provides some more general APIs, which you can use for secondary encapsulation, such as [nuxt-electron](https://github.com/caoxiemeihao/nuxt-electron). | ||
## Flat API <sub><sup>(Define)</sup></sub> | ||
@@ -124,0 +130,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44348
340