From b796f2152a19db0f5f7673cbddb0f9b1bd0770e7 Mon Sep 17 00:00:00 2001 From: Yuxuan Zhang Date: Fri, 29 Dec 2023 03:50:52 -0500 Subject: [PATCH] rollup.config: clarify comment --- rollup.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.ts b/rollup.config.ts index 877c4ecc..49692956 100644 --- a/rollup.config.ts +++ b/rollup.config.ts @@ -58,7 +58,7 @@ const esmBuild: RollupOptions = { return `${chunk.name}-[hash].js` }, manualChunks(id) { - // All workers will be chunked into a single file + // Chunk each worker into a separate file if (!id.startsWith(node_root)) return id = id.slice(node_root.length).replace(/^\//, '') const match = /^.*\-worker(?=(\.(js|ts))?$)/i.exec(id)