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(