chore: update comments

This commit is contained in:
草鞋没号 2022-07-23 10:22:57 +08:00
parent f9571ab94a
commit a6b1fe3455
1 changed files with 1 additions and 1 deletions

View File

@ -55,8 +55,8 @@ function withDebug(config: UserConfig): UserConfig {
config.plugins = (config.plugins || []).concat({
name: 'electron-vite-debug',
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');
// At present, Vite can only modify plugins in configResolved hook.
(config.plugins as Plugin[]).splice(index, 1)
},
})