Module re-exporting in NestJS occurs when a module both imports and exports another module, making the imported module’s providers available to any module that imports the re-exporting one:
@Module({ imports: [CommonModule], exports: [CommonModule] })
export class CoreModule {}This enables transitive module sharing — modules importing CoreModule get access to all of CommonModule’s exports without directly importing CommonModule. Useful for creating aggregated or barrel modules.