@tomjs/vite-plugin-electron 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -182,10 +182,10 @@ export default defineConfig({
182
182
  | Property | Type | Default | Description |
183
183
  | --- | --- | --- | --- |
184
184
  | recommended | `boolean` | `true` | This option is intended to provide recommended default parameters and behavior. |
185
- | external | `string[]` | | List of modules that should not be bundled. |
185
+ | external | `string[]` | | Don't bundle these modules, but dependencies and peerDependencies in your package.json are always excluded.[See more](https://tsup.egoist.dev/#excluding-packages) |
186
186
  | main | [MainOptions](#MainOptions) | | Configuration options for the electron main process. |
187
187
  | preload | [PreloadOptions](#PreloadOptions) | | Configuration options for the electron preload process. |
188
- | inspect | `boolean` | true | If set to true, electron will start with the `--inspect` flag. |
188
+ | debug | `boolean` | `false` | Electron debug mode, don't startup electron. |
189
189
 
190
190
  **Notice**
191
191
 
package/README.zh_CN.md CHANGED
@@ -183,10 +183,10 @@ export default defineConfig({
183
183
  | 参数名 | 类型 | 默认值 | 说明 |
184
184
  | --- | --- | --- | --- |
185
185
  | recommended | `boolean` | `true` | 这个选项是为了提供推荐的默认参数和行为 |
186
- | external | `string[]` | | 不打包这些模块 |
186
+ | external | `string[]` | | 不打包这些模块,但是 `dependencies` and `peerDependencies` 默认排除,[详见](https://tsup.egoist.dev/#excluding-packages) |
187
187
  | main | [MainOptions](#MainOptions) | | electron main 进程选项 |
188
188
  | preload | [PreloadOptions](#PreloadOptions) | | electron preload 进程选项 |
189
- | inspect | `boolean` | `true` | electron启动时使用`--inspect`参数 |
189
+ | debug | `boolean` | `false` | electron调试模式,不启动electron |
190
190
 
191
191
  `recommended` 选项用于设置默认配置和行为,几乎可以达到零配置使用,默认为 `true` 。如果你要自定义配置,请设置它为`false`。以下默认的前提条件是使用推荐的 [项目结构](#目录结构)。
192
192
 
package/dist/index.d.mts CHANGED
@@ -62,7 +62,8 @@ interface PluginOptions {
62
62
  */
63
63
  recommended?: boolean;
64
64
  /**
65
- * Don't bundle these modules
65
+ * Don't bundle these modules, but dependencies and peerDependencies in your package.json are always excluded. [See more](https://tsup.egoist.dev/#excluding-packages)
66
+ * @see https://tsup.egoist.dev/#excluding-packages
66
67
  */
67
68
  external?: string[];
68
69
  /**
package/dist/index.d.ts CHANGED
@@ -62,7 +62,8 @@ interface PluginOptions {
62
62
  */
63
63
  recommended?: boolean;
64
64
  /**
65
- * Don't bundle these modules
65
+ * Don't bundle these modules, but dependencies and peerDependencies in your package.json are always excluded. [See more](https://tsup.egoist.dev/#excluding-packages)
66
+ * @see https://tsup.egoist.dev/#excluding-packages
66
67
  */
67
68
  external?: string[];
68
69
  /**
package/dist/index.js CHANGED
@@ -177,6 +177,7 @@ function preMergeOptions(options) {
177
177
  const opts = _lodashmerge2.default.call(void 0,
178
178
  {
179
179
  recommended: true,
180
+ debug: false,
180
181
  external: ["electron"],
181
182
  main: {
182
183
  ...electron2
package/dist/index.mjs CHANGED
@@ -176,6 +176,7 @@ function preMergeOptions(options) {
176
176
  const opts = merge(
177
177
  {
178
178
  recommended: true,
179
+ debug: false,
179
180
  external: ["electron"],
180
181
  main: {
181
182
  ...electron2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomjs/vite-plugin-electron",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "A simple vite plugin for electron, supports esm/cjs.",
5
5
  "keywords": [
6
6
  "vite",