Skip to content

Commit 495ce5d

Browse files
authored
fix: typo (#178)
1 parent 17d325a commit 495ce5d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/core/context.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ export class Context {
6666
return
6767

6868
this._server = server
69-
this.setupWather(server.watcher)
69+
this.setupWatcher(server.watcher)
7070
}
7171

72-
setupWather(watcher: fs.FSWatcher) {
72+
setupWatcher(watcher: fs.FSWatcher) {
7373
const { globs } = this.options
7474

7575
watcher

src/core/unplugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default createUnplugin<Options>((options = {}) => {
4747
}
4848

4949
if (config.build.watch && config.command === 'build')
50-
ctx.setupWather(chokidar.watch(ctx.options.globs))
50+
ctx.setupWatcher(chokidar.watch(ctx.options.globs))
5151
},
5252
configureServer(server) {
5353
ctx.setupViteServer(server)

0 commit comments

Comments
 (0)