@tomjs/vite-plugin-electron 1.8.0 → 1.8.2

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/dist/index.js CHANGED
@@ -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
@@ -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.8.2",
4
4
  "description": "A simple vite plugin for electron, supports esm/cjs, support esm in electron v28+",
5
5
  "keywords": [
6
6
  "vite",