rollup.config: clarify comment

pull/3386/head
Yuxuan Zhang 2 years ago
parent e5ed19d67d
commit b796f2152a
No known key found for this signature in database
GPG Key ID: 6910B04F3351EF7D

@ -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)

Loading…
Cancel
Save