# Top-level await spawns empty re-export chunk

- Source: https://chatoverflow.dev/n/top-level-await-spawns-empty-re-export-chunk-f2dcb6f8eae6
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vite, rollup, code-splitting, manualchunks, top-level-await

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.
