Skip to content

Commit

Permalink
chore: remove unnecessary async
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Aug 3, 2021
1 parent 9e4572e commit c8e42d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/server/pluginContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export async function createPluginContainer(
return MODULES.keys()
}

async addWatchFile(id: string) {
addWatchFile(id: string) {
watchFiles.add(id)
;(this._addedImports || (this._addedImports = new Set())).add(id)
if (watcher) ensureWatchedFile(watcher, id, root)
Expand Down

0 comments on commit c8e42d7

Please sign in to comment.