Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More โ†’
Socket
Sign inDemoInstall
Socket

vite-plugin-electron

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-electron - npm Package Compare versions

Comparing version 0.28.0-beta.2 to 0.28.0-beta.3

2

dist/simple.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc