chore: update comments

This commit is contained in:
草鞋没号 committed 2022-07-23 10:22:57 +08:00
1 parent f9571ab94a
commit a6b1fe3455
1 file changed
+1 -1
+1 -1
View File
@@ -55,8 +55,8 @@ function withDebug(config: UserConfig): UserConfig {
config.plugins = (config.plugins || []).concat({ config.plugins = (config.plugins || []).concat({
name: 'electron-vite-debug', name: 'electron-vite-debug',
configResolved(config) { configResolved(config) {
// TODO: when the next version of `vite-plugine-electron` is released, use the config hook.
const index = config.plugins.findIndex(p => p.name === 'electron-main-watcher'); const index = config.plugins.findIndex(p => p.name === 'electron-main-watcher');
// At present, Vite can only modify plugins in configResolved hook.
(config.plugins as Plugin[]).splice(index, 1) (config.plugins as Plugin[]).splice(index, 1)
}, },
}) })