5.0.0-alpha.0
Pre-release
Pre-release
jbroma
released this
12 Sep 13:46
·
70 commits
to main
since this release
Important Notes
This release introduces long-awaited support for Rspack while maintaining full compatibility with webpack.
Try it Out:
To bootstrap a new project or migrate an existing project from Metro, run:
npx @callstack/[email protected]
Upgrading from Version 4:
-
Open
react-native.config.js
and update the line:require('callstack/repack/commands')
to:
require('callstack/repack/commands/rspack')
-
Install the necessary Rspack dependencies:
npm install @rspack/core @rspack/plugin-react-refresh @swc/helpers --save-dev
-
Check out the new Rspack templates for configuration and migrate your existing Webpack configurations to Rspack:
MJS Template: rspack.config.mjs
CJS Template: rspack.config.cjs
Migration Guide: if you are migrating from Webpack to Rspack, refer to the official guide: Rspack Migration Guide