This repository is a minimal reproduction for a crash in Module Federation DTS when using:
@module-federation/rsbuild-plugindts: { consumeTypes: false, generateTypes: true }
- Node:
v20.15.0(the version where this repro was observed)
cd REPO
npm installnpm run devThe Module Federation DTS worker crashes with:
Error: moduleFederationConfig is required- followed by a crash:
TypeError: Cannot read properties of undefined (reading 'exit')(when callingmoduleServer.exit())
With consumeTypes: false, DTS should not require a host config and should not crash (at minimum no TypeError).
The repro is driven by this config (see rsbuild.config.mts):
dts.consumeTypes = falsedts.generateTypes = true