|
|
@ -54,7 +54,6 @@ const esmBuild: RollupOptions = {
|
|
|
|
format: 'esm',
|
|
|
|
format: 'esm',
|
|
|
|
entryFileNames: `[name].js`,
|
|
|
|
entryFileNames: `[name].js`,
|
|
|
|
chunkFileNames(chunk) {
|
|
|
|
chunkFileNames(chunk) {
|
|
|
|
console.log('chunkFileNames =>', chunk.name)
|
|
|
|
|
|
|
|
return `${chunk.name}-[hash].js`
|
|
|
|
return `${chunk.name}-[hash].js`
|
|
|
|
},
|
|
|
|
},
|
|
|
|
manualChunks(id) {
|
|
|
|
manualChunks(id) {
|
|
|
@ -64,7 +63,6 @@ const esmBuild: RollupOptions = {
|
|
|
|
const match = /^.*\-worker(?=(\.(js|ts))?$)/i.exec(id)
|
|
|
|
const match = /^.*\-worker(?=(\.(js|ts))?$)/i.exec(id)
|
|
|
|
if (match) {
|
|
|
|
if (match) {
|
|
|
|
const [name] = match
|
|
|
|
const [name] = match
|
|
|
|
console.log('manualChunks worker =>', name)
|
|
|
|
|
|
|
|
return name
|
|
|
|
return name
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|