A shared Webpack configuration for single-spa microfrontends using TypeScript. Version 8.0.0 is current, with active development and semver releases. It extends webpack-config-single-spa with TypeScript support via ts-loader and fork-ts-checker-webpack-plugin. Differentiators: tailored for single-spa module system, integrates a standalone plugin for development, and abstracts complex webpack setup. Requires typescript >=4 as a peer dependency.
npm install webpack-config-single-spa-tsVerified import paths — ran on the pinned version, not inferred.
Basic usage: import the default config function and export its return value with an entry point.
Update standalone-single-spa-webpack-plugin to compatible version.
Upgrade to v8.0.0 or manually configure ts-loader options.
Set `disableTypeCheck: true` in config options for faster webpack rebuilds.
Set `outputFilename` to a unique name like 'my-app.js'.
Upgrade Node to v16+ or pin to older version.
Run `npm install --save-dev ts-loader`
Use `import webpackConfig from 'webpack-config-single-spa-ts'` (no braces)
Ensure webpack@5 is installed
Use `import type { ConfigOptions }`