Releases: callstack/repack
5.0.0-rc.2
5.0.0-rc.1
Major Changes
-
#780
e937211
Thanks @jbroma! - Removed--silent
CLI flag for start command.For silencing output, you can use shell redirection instead:
- Unix/macOS:
npx react-native start > /dev/null 2>&1
- Windows:
npx react-native start > nul 2>&1
- Unix/macOS:
-
#786
cf42d14
Thanks @jbroma! - Enable new debugger (React Native DevTools) by default, remove support for legacy remote debugging
Minor Changes
-
#784
f8af03c
Thanks @zmzlois! - addreact-native-linear-gradient
to flow type module loading rule support -
#778
2344162
Thanks @jbroma! - Add--config
option to commands, deprecate--webpackConfig
option
Patch Changes
-
#776
31d0e32
Thanks @jbroma! - Fix peer dependency config for @rspack/core in repack package -
#775
76738de
Thanks @jbroma! - Fix customization of MF1 federated entry filename -
#787
acdd0c8
Thanks @jbroma! - Fix sourceURL of bundles so source maps can be matched in dev tools -
#779
679bcd8
Thanks @jbroma! - More intuitive behaviour of--verbose
flag in start command
5.0.0-rc.0
Minor Changes
-
#674
9f4ad85
Thanks @jbroma! - Add support for Module Federation V2 -
#765
efff0c2
Thanks @jbroma! - Add default rules for transpiling popular flow typed packages -
#702
495203d
Thanks @jbroma! - Enable dev-server to serve source assets alongside build artifacts -
#763
e433584
Thanks @thiagobrez! - Add getModulePaths utility to generate include and exclude paths for modules in the bundler config -
#757
8a90731
Thanks @artus9033! - Display list of available interactions on dev server startup & add support for 'j' to debug -
#753
176324a
Thanks @artus9033! - Add support for React Native 0.76 -
#750
c4a3235
Thanks @jbroma! - Normalize filepath & ensure path exists when writing stats to a file -
#734
b455503
Thanks @hexboy! - Add a mechanism for retrying downloads of scripts throughretry
andretryDelay
properties
Patch Changes
-
#711
7af6d5b
Thanks @jbroma! - fix: always use URL from Script config assourceUrl
when evaluating bundles on Android -
#766
206d76f
Thanks @jbroma! - Fix handling of cjs,mjs,cts,mts files when transpiling node modules with swc -
#755
90faeeb
Thanks @jbroma! - Disable package imports by default -
#756
f119ab3
Thanks @hosseinmd! - Prevent to loadScript which is already is loading
issue: #749 -
#771
df1d587
Thanks @hosseinmd! - script should be cached after successfully loaded
4.3.3
5.0.0-alpha.0
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
Major Changes
4.3.2
4.3.1
4.3.0
Minor Changes
Patch Changes
-
#710
a467bb5
Thanks @jbroma! - Use compile-time check to determine React-Native version inWebpackHMRClient
-
#697
14550ab
Thanks @jbroma! - Align CLI options forstart
andbundle
commands with@react-native/community-cli-plugin
. -
#703
4de5305
Thanks @hexboy! - FixLoadingView
import inWebpackHMRClient
for React Native >=0.75
4.2.0
Important updates
This release includes fixes for bundle caching, naming collisions, and typing in the native module, along with the addition of an assetPath
field for more control over remote assets.
You can read more about customising assetPath
here: https://re-pack.dev/docs/guides/remote-assets#customizing-asset-path
Minor Changes
-
#680
b936d63
Thanks @jbroma! - Fix bundle caching after invalidating scripts -
#683
8b07027
Thanks @jbroma! - Fix bundle naming collisions when using device filesystem cache -
#641
c9eaef8
Thanks @jbroma! - Fix typing for methods exposed in native module -
#651
a385b2b
Thanks @adammruk! - Added 'assetPath' field to remote assets config, enabling granular control over the generated URL and server location to the asset
Patch Changes
-
#679
d8924c6
Thanks @jbroma! - Fix infinite loop when traversing the chunk graph in OutputPlugin -
#647
e51b7a6
Thanks @jhso-dev! - Correctly parse platform from file URL -
#656
1e27ae5
Thanks @barttom! - Improved descriptions of start and bundle command options -
#678
46f1eb4
Thanks @jbroma! - Refactor OutputPlugin's chunk categorization algorithm -
#646
9c119db
Thanks @jbroma! - Prevent infinite recursion when tracking down initial chunks in Output Plugin