@tomjs/vite-plugin-electron 1.8.0 → 1.9.0

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
@@ -405,7 +405,7 @@ Run `Debug Main Process` through `vscode` to debug the main thread. For debuggin
405
405
  "background": {
406
406
  "activeOnStart": true,
407
407
  "beginsPattern": "^.*VITE v.* ready in \\d* ms.*$",
408
- "endsPattern": "^.*\\[@tomjs:electron\\] startup electron*$"
408
+ "endsPattern": "^.*\\[tomjs:electron\\] startup electron*$"
409
409
  }
410
410
  }
411
411
  }
package/README.zh_CN.md CHANGED
@@ -404,7 +404,7 @@ app.whenReady().then(() => {
404
404
  "background": {
405
405
  "activeOnStart": true,
406
406
  "beginsPattern": "^.*VITE v.* ready in \\d* ms.*$",
407
- "endsPattern": "^.*\\[@tomjs:electron\\] startup electron*$"
407
+ "endsPattern": "^.*\\[tomjs:electron\\] startup electron*$"
408
408
  }
409
409
  }
410
410
  }
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ var _dayjs = require('dayjs'); var _dayjs2 = _interopRequireDefault(_dayjs);
16
16
  var _kolorist = require('kolorist');
17
17
 
18
18
  // src/constants.ts
19
- var PLUGIN_NAME = "@tomjs:electron";
19
+ var PLUGIN_NAME = "tomjs:electron";
20
20
 
21
21
  // src/logger.ts
22
22
  var Logger = class {
@@ -358,6 +358,7 @@ function preMergeOptions(options) {
358
358
  const electron2 = {
359
359
  target: ["es2021", "node16"],
360
360
  format,
361
+ shims: true,
361
362
  clean: true,
362
363
  dts: false,
363
364
  treeshake: !!isDev,
package/dist/index.mjs CHANGED
@@ -16,7 +16,7 @@ import dayjs from "dayjs";
16
16
  import { blue, gray, green, red, yellow } from "kolorist";
17
17
 
18
18
  // src/constants.ts
19
- var PLUGIN_NAME = "@tomjs:electron";
19
+ var PLUGIN_NAME = "tomjs:electron";
20
20
 
21
21
  // src/logger.ts
22
22
  var Logger = class {
@@ -357,6 +357,7 @@ function preMergeOptions(options) {
357
357
  const electron2 = {
358
358
  target: ["es2021", "node16"],
359
359
  format,
360
+ shims: true,
360
361
  clean: true,
361
362
  dts: false,
362
363
  treeshake: !!isDev,
package/env.d.ts CHANGED
@@ -8,7 +8,7 @@ declare namespace NodeJS {
8
8
  /**
9
9
  * Node.js environment
10
10
  */
11
- NODE_ENV: UnionType<'development' | 'test' | 'production'>;
11
+ NODE_ENV: UnionType<'development' | 'production' | 'test'>;
12
12
  /**
13
13
  * The url of the dev server.
14
14
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomjs/vite-plugin-electron",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "description": "A simple vite plugin for electron, supports esm/cjs, support esm in electron v28+",
5
5
  "keywords": [
6
6
  "vite",