vite-plugin-electron-renderer
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -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'); |
{ | ||
"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" 中 |
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
9096
119
78