"Migrate the Converse.js build system from Webpack to RSPack by:
- Replacing all Webpack configuration files with RSPack equivalents
- Using RSPack's built-in plugins instead of Webpack plugins where possible
- Removing unnecessary loaders since RSPack has SWC built-in
- Maintaining all existing functionality while improving build performance
- Keeping the existing file structure and build process intact"
- Create
rspack.common.jsbase configuration - Convert
webpack.build.jstorspack.build.js - Convert
webpack.headless.jstorspack.headless.js - Convert
webpack.nodeps.jstorspack.nodeps.js - Convert
webpack.serve.jstorspack.serve.js
- Replace
CircularDependencyPluginwithCircularDependencyRspackPlugin - Replace
CopyWebpackPluginwithCopyRspackPlugin - Replace
MiniCssExtractPluginwithCssExtractRspackPlugin - Replace
DefinePluginwith RSPack's version - Remove
TerserPlugin(handled by RSPack internally)
- Remove
swc-loader(use RSPack's built-in SWC) - Update SCSS/CSS loaders to work with RSPack
- Keep
po-loaderas is (still needed) - Update asset handling for fonts/images
- Add RSPack dependencies
- Update build scripts
- Remove unused Webpack dependencies
- Verify all other dependencies still work
- Test production build
- Test headless build
- Test development server
- Verify all assets are included correctly
- Check for circular dependency warnings