Skip to content

Commit

Permalink
fix: terminate worker if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
ModyQyW committed Oct 14, 2024
1 parent 68906c1 commit acd43ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export default function StylelintPlugin(
async buildEnd() {
debug("==== buildEnd ====");
if (watcher?.close) await watcher.close();
if (worker) await worker.terminate();
},
};
}
Expand Down

0 comments on commit acd43ca

Please sign in to comment.