Skip to content

Commit

Permalink
fix: typo (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Oct 13, 2021
1 parent 17d325a commit 495ce5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ export class Context {
return

this._server = server
this.setupWather(server.watcher)
this.setupWatcher(server.watcher)
}

setupWather(watcher: fs.FSWatcher) {
setupWatcher(watcher: fs.FSWatcher) {
const { globs } = this.options

watcher
Expand Down
2 changes: 1 addition & 1 deletion src/core/unplugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default createUnplugin<Options>((options = {}) => {
}

if (config.build.watch && config.command === 'build')
ctx.setupWather(chokidar.watch(ctx.options.globs))
ctx.setupWatcher(chokidar.watch(ctx.options.globs))
},
configureServer(server) {
ctx.setupViteServer(server)
Expand Down

0 comments on commit 495ce5d

Please sign in to comment.