Closed sahajarora1286 closed 1 week ago
Hi @sahajarora1286, could you please create a reproduction repository with this issue? It really saves a lot of time and allows us to handle issues more swiftly instead of trying to recreate this on our own, thanks!
This issue has been marked as stale because it has been inactive for 30 days. Please update this issue or it will be automatically closed in 14 days.
Closing since no repro was provided and the issue is about a non-stable version of Re.Pack. Happy to revisit the issue if it's still a problem in the future.
Describe the bug
I am trying to upgrade from @callstack/repack v4 to v5.0.0-alpha.0. I have followed the templates in the repack example as well as the official webpack -> rspack migration documentation to migrate from webpack to rspack.
I have a react-native super-app that leverages module-federation and exists as a monorepo.
Here's what my
rspack.config.mjs
file looks like for thehost
:When I try to start the
host
app using the command:react-native webpack-start --webpackConfig ./rspack.config.mjs --host 127.0.0.1
, I get the following error:My motivation, and need, to get to Rspack from Webpack is to lower the build time it currently takes with webpack. The fact that with callstack/repack v4 we need to use webpack and
babel-loader
to transpile hugenode_module
files (for react-native compatibility) is a pain and leads to really slow compilation of the host and other mini-apps that have bare minimal code (2-4 source files). I have learnt thatswc
is a much faster alternative tobabel-loader
and hence I'd love to be able to leverage it in my project setup.Any help with resolving this issue and getting my project to successfully work with @callstack/repack v5.0.0-alpha.0 and rspac + swc-loader would be highly appreciated.
Thanks !
System Info
Re.Pack Version
5.0.0-alpha.0
Reproduction
n/a
Steps to reproduce
Use the following config for rspack.config.js :
Try to start the dev server using:
react-native webpack-start --webpackConfig ./rspack.config.mjs