From 302bea9718912db5b61b142b084c4c246b017d88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= <308487730@qq.com> Date: Wed, 6 Apr 2022 08:35:54 +0800 Subject: [PATCH] vite-plugin-electron-renderer -> vite-plugin-electron/renderer --- package-lock.json | 18 +++++++++--------- package.json | 2 +- packages/renderer/vite.config.ts | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index feb5862..5655fc3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ "simple-git-hooks": "^2.7.0", "typescript": "^4.6.3", "vite": "^2.8.6", - "vite-plugin-electron-renderer": "^0.3.2", + "vite-plugin-electron": "^0.2.0", "vite-plugin-resolve": "^2.0.1", "vue": "^3.2.31", "vue-tsc": "^0.31.1" @@ -6233,10 +6233,10 @@ } } }, - "node_modules/vite-plugin-electron-renderer": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/vite-plugin-electron-renderer/-/vite-plugin-electron-renderer-0.3.2.tgz", - "integrity": "sha512-XJc9AZaRpQcmqo3JTspLFtXZEr4lXhRdQ4RuQunMW3/aW13e7d0wA138SaoIiQzEFLBYKVlLXvQN7kUTzfbLWQ==", + "node_modules/vite-plugin-electron": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/vite-plugin-electron/-/vite-plugin-electron-0.2.0.tgz", + "integrity": "sha512-0QGYrpM5ivLIc6ybgBDKiy/MZrlkU/JNVM7zn5M2nLUtt3a3k8Jktju/DN2RhoIEt0n9pKO+DFCVDy60Adul9w==", "dev": true, "dependencies": { "vite-plugin-optimizer": "^1.3.2" @@ -11347,10 +11347,10 @@ "rollup": "^2.59.0" } }, - "vite-plugin-electron-renderer": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/vite-plugin-electron-renderer/-/vite-plugin-electron-renderer-0.3.2.tgz", - "integrity": "sha512-XJc9AZaRpQcmqo3JTspLFtXZEr4lXhRdQ4RuQunMW3/aW13e7d0wA138SaoIiQzEFLBYKVlLXvQN7kUTzfbLWQ==", + "vite-plugin-electron": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/vite-plugin-electron/-/vite-plugin-electron-0.2.0.tgz", + "integrity": "sha512-0QGYrpM5ivLIc6ybgBDKiy/MZrlkU/JNVM7zn5M2nLUtt3a3k8Jktju/DN2RhoIEt0n9pKO+DFCVDy60Adul9w==", "dev": true, "requires": { "vite-plugin-optimizer": "^1.3.2" diff --git a/package.json b/package.json index b76e7c9..2d8f09c 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "simple-git-hooks": "^2.7.0", "typescript": "^4.6.3", "vite": "^2.8.6", - "vite-plugin-electron-renderer": "^0.3.2", + "vite-plugin-electron": "^0.2.0", "vite-plugin-resolve": "^2.0.1", "vue": "^3.2.31", "vue-tsc": "^0.31.1" diff --git a/packages/renderer/vite.config.ts b/packages/renderer/vite.config.ts index 536e138..1a8e7e6 100644 --- a/packages/renderer/vite.config.ts +++ b/packages/renderer/vite.config.ts @@ -1,7 +1,7 @@ import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import resolve from 'vite-plugin-resolve' -import electron from 'vite-plugin-electron-renderer' +import electron from 'vite-plugin-electron/renderer' import pkg from '../../package.json' // https://vitejs.dev/config/