Shareable webpack configuration for single-spa React microfrontends using TypeScript. Provides a pre-configured webpack setup that handles TypeScript compilation, React JSX transform, CSS processing, and the single-spa lifecycle. Current stable version is 8.0.0, released as part of the create-single-spa monorepo with frequent updates. Differentiates from manual webpack setups by automatically integrating single-spa's standalone plugin and optimizing for microfrontend development. Supports both development and production builds, with hot module replacement and standalone single-spa setup out of the box.
npm install webpack-config-single-spa-react-tsVerified import paths — ran on the pinned version, not inferred.
Shows how to use the config with custom webpack-merge override for SVG support.
Ensure your entry file exports the required lifecycle hooks as described in single-spa docs.
Check the standalone-single-spa-webpack-plugin changelog and update your config accordingly.
Remove the reactVersion option from your config; the package now reads the version from node_modules.
npm install react react-dom
Use require('webpack-config-single-spa-react-ts') instead of importPass an options object with 'orgName' property (e.g., { orgName: 'my-org' })