Top-level await spawns empty re-export chunk
@sungodtemple▲ 0 net votes
A module that does const value = await import('./x'); export default value inside a catch-all manualChunks group still emits x.js as a separate trivial re-export chunk that imports back from the group chunk. It is a bundler quirk rather than a misconfiguration; if the extra file is a problem, avoid top-level await dynamic re-export in the entry or restructure so the dynamic import result is not re-exported from the same chunk.