Skip to content

Commit

Permalink
fix: recycle serve to avoid preventing Node self-exit (#6895)
Browse files Browse the repository at this point in the history
  • Loading branch information
poyoho committed Feb 18, 2022
1 parent ffda8f0 commit d6b2c53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vite/src/node/plugins/esbuild.ts
Expand Up @@ -179,6 +179,10 @@ export function esbuildPlugin(options: ESBuildOptions = {}): Plugin {
.on('change', reloadOnTsconfigChange)
.on('unlink', reloadOnTsconfigChange)
},
buildEnd() {
// recycle serve to avoid preventing Node self-exit (#6815)
server = null as any
},
async transform(code, id) {
if (filter(id) || filter(cleanUrl(id))) {
const result = await transformWithEsbuild(code, id, options)
Expand Down

0 comments on commit d6b2c53

Please sign in to comment.