chore: update comments
This commit is contained in:
		
							parent
							
								
									f9571ab94a
								
							
						
					
					
						commit
						a6b1fe3455
					
				| 
						 | 
					@ -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)
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue