A helper package for generating webpack configurations tailored for React microfrontends using single-spa. Current stable version is 8.0.0. Part of the create-single-spa ecosystem, it provides a pre-configured webpack setup that handles React JSX, CSS, asset loaders, and exposes the single-spa lifecycle hooks. It wraps webpack-config-single-spa and adds React-specific defaults. The package is designed to simplify the webpack configuration process for React apps in a microfrontend architecture, promoting consistency and best practices. It is actively maintained alongside other single-spa webpack config packages.
npm install webpack-config-single-spa-reactVerified import paths — ran on the pinned version, not inferred.
Shows how to import and use webpackConfigSingleSpaReact in a webpack config file, returning the generated config.
Review the changelog for standalone plugin updates and adjust your webpack config if needed.
Use ES module import syntax.
Use default import or require without destructuring: import foo from '...' or const foo = require('...')Upgrade webpack to v5 or later.
Run npm install webpack-config-single-spa-react --save-dev
Use default import: import webpackConfigSingleSpaReact from 'webpack-config-single-spa-react';
Upgrade webpack to v5 or later.