From 82c8686bfb46b49c424f117e1930d2c9b8d08561 Mon Sep 17 00:00:00 2001 From: yutent Date: Thu, 15 Jun 2023 19:51:21 +0800 Subject: [PATCH] once -> on --- lib/thread.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/thread.js b/lib/thread.js index c23b664..318a3a3 100644 --- a/lib/thread.js +++ b/lib/thread.js @@ -10,7 +10,7 @@ const { options, verbose, dist, imports } = workerData options.isCustomElement = Function('return ' + options.isCustomElement)() -parentPort.once('message', job => { +parentPort.on('message', job => { let [currentPage, { page, files }] = job.entries().next().value console.log(