Skip to content

Commit e623b4a

Browse files
authored
chore: delete unused plugin hook 'watchChange' (#4617)
1 parent f19282f commit e623b4a

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

packages/vite/src/node/server/pluginContainer.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ import {
3838
OutputOptions,
3939
ModuleInfo,
4040
NormalizedInputOptions,
41-
ChangeEvent,
4241
PartialResolvedId,
4342
ResolvedId,
4443
PluginContext as RollupPluginContext,
@@ -82,7 +81,6 @@ export interface PluginContainerOptions {
8281
export interface PluginContainer {
8382
options: InputOptions
8483
buildStart(options: InputOptions): Promise<void>
85-
watchChange(id: string, event?: ChangeEvent): void
8684
resolveId(
8785
id: string,
8886
importer?: string,
@@ -531,17 +529,6 @@ export async function createPluginContainer(
531529
}
532530
},
533531

534-
watchChange(id, event = 'update') {
535-
const ctx = new Context()
536-
if (watchFiles.has(id)) {
537-
for (const plugin of plugins) {
538-
if (!plugin.watchChange) continue
539-
ctx._activePlugin = plugin
540-
plugin.watchChange.call(ctx as any, id, { event })
541-
}
542-
}
543-
},
544-
545532
async close() {
546533
if (closed) return
547534
const ctx = new Context()

0 commit comments

Comments
 (0)