Socket
Socket
Sign inDemoInstall

vite-plugin-electron-renderer

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-electron-renderer - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

1

index.js

@@ -47,2 +47,3 @@ const path = require('path');

if (!config.resolve) config.resolve = {};
if (!config.resolve.conditions) config.resolve.conditions = ['node'];
if (!config.resolve.alias) config.resolve.alias = [];

@@ -49,0 +50,0 @@ const electronjs = path.join(__dirname, 'modules/electron-renderer.js');

2

package.json
{
"name": "vite-plugin-electron-renderer",
"version": "0.3.0",
"version": "0.3.1",
"description": "Use Electron and NodeJs API in Renderer-process",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -68,3 +68,3 @@ # vite-plugin-electron-renderer

- If you do not configure the following options, the plugin will modify their default values
> If you do not configure the following options, the plugin will modify their default values

@@ -74,2 +74,3 @@ * `base = './'`

* `build.rollupOptions.output.format = 'cjs'`
* `resolve.conditions = ['node']`

@@ -76,0 +77,0 @@ 2. The plugin transform Electron and Node.js built-in modules to ESModule format in "vite serve" phase.

@@ -66,3 +66,3 @@ # vite-plugin-electron-renderer

- 在你没主动配置过下列配置时,插件会修改它们的默认值
> 在你没主动配置过下列配置时,插件会修改它们的默认值

@@ -72,2 +72,3 @@ * `base = './'`

* `build.rollupOptions.output.format = 'cjs'`
* `resolve.conditions = ['node']`

@@ -74,0 +75,0 @@ - 将 Electron,Node.Js 内置模块和 `options.resolve` 插入到 "optimizeDeps.exclude" 中

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