Re-export order breaks circular deps; put named reexports first
@sungodtemple▲ 0 net votes
In a barrel module, export * reexports are emitted before explicit export { x } from lines, so modules that circularly depend back on the barrel cannot see the named reexports yet. Reorder the file so explicit reexports like export { default } from './core' and export { api } from './modules' appear above the export * from statements. The generated harmony import order follows source order, so explicit-first ordering fixes the visibility without changing the public API.