Releases: callstack/repack
5.1.0-rc.0
Minor Changes
-
#1078
5ac48cdThanks @szymonrybczak! - Add hook system toScriptManagerfor runtime manipulation of script loading process. -
#1099
332f384Thanks @jbroma! - Enable support for package imports by default when resolving modules -
#1128
859c1d7Thanks @jbroma! - Strip empty import statements that are a leftover from stripping flow type imports -
#1136
55a56c3Thanks @jbroma! - Support Module FederationpreloadRemotethroughPrefetchPlugin. -
#1140
2cedf58Thanks @jbroma! - Enable persistent cache by default instartcommand -
#1130
90be891Thanks @jbroma! - MF2ResolverPluginnow adds a resolver only once when new remote is registered throughregisterRemotefederation runtime hook -
#1073
84952acThanks @jbroma! - Add support for setting up proxy in DevServer for redirecting requests -
#1099
332f384Thanks @jbroma! - Resolve platform (.ios,.android) & native (.native) extensions when using package exports -
#1099
332f384Thanks @jbroma! - Useimport/requirecondition name depending on the source type (esmorcjs) -
#1140
2cedf58Thanks @jbroma! - Support resetting transformation cache via--reset-cacheflag
Patch Changes
-
#1139
be32944Thanks @jbroma! - Fix issue where errors originating in project config files were getting swallowed when the project config was loaded. -
#1119
19c814fThanks @jbroma! - Check for default import when using deep imports fromreact-nativein WebpackHMRClient, DevServerClient and when using remote or inline assets -
#1066
1bc0e4dThanks @szymonrybczak! - Add detecting dependency specific plugins -
#1134
acd69dbThanks @jbroma! - Always include AssetRegistry and AssetSourceResolver in the bundle -
#1143
81ee94cThanks @jbroma! - Fix failure to read project package json when validating plugins -
#1123
bd58562Thanks @jbroma! - Allow passingreferenceUrltoScriptManager.prefetchScript -
#1137
996942fThanks @jbroma! - Supportapplication/jsontype of payload for/symbolicaterequests
5.0.6
5.0.5
5.0.4
5.0.3
5.0.2
5.0.1
Patch Changes
-
#1075
dac01e4Thanks @szymonrybczak! - Use default publicPath in development instead of enforcing it in DevelopmentPlugin -
#1074
54fa1cdThanks @szymonrybczak! - Remove enforcement of output filenames in dev mode -
#1065
e08a805Thanks @jbroma! - Fix normalization of resolve.extensions with [platform] placeholder & set publicPath to noop explicitly when using deprecated getPublicPath helper function
5.0.0
✨ Re.Pack 5 ✨
Highlights:
- 5x faster with Rspack
- Mobile microfrontends with Module Federation 2
- Up to 90% smaller configs
- Reanimated, Expo Modules, & NativeWind plugins
Read the full release blog post: https://re-pack.dev/blog/repack-5-release
Migration
We've prepared dedicated migration guides to help you with the transition:
- Migrate from Re.Pack 4: https://re-pack.dev/docs/migration-guides/repack-v4
- Migrate from webpack to Rspack: https://re-pack.dev/docs/migration-guides/rspack
Major Changes
-
#977
e12f63dThanks @jbroma! - BREAKING:config.devtoolis now used to control the behaviour of generated sourcemaps. To enable sourcemaps again, please removedevtool: falsefrom your config or set it explicitly to one of valid values (e.g.source-map).Introduced a dedicated
SourceMapPluginthat consolidates sourcemap configuration and improves sourcemap handling by relying on thedevtooloption. The plugin is part of the Repack plugin and does not need to be added separately. -
#780
e937211Thanks @jbroma! - Removed--silentCLI 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:
-
#825
18f2eefThanks @jbroma! - Removed--reverse-portCLI option and replaced it with--no-reverse-portCLI option. -
#912
07d0566Thanks @jbroma! - BREAKING CHANGES: RemoveddevServerEnabledoption from assets-loader anddevServerfrom Repack plugin configuration - they are now obtained automatically from configuration.Added new
config.devServerfield to configure development server properties with type-safe http/https configuration, special host values (local-ip, local-ipv4, local-ipv6), and enhanced HTTPS configuration with full HttpsServerOptions support. -
#987
97cd8e8Thanks @jbroma! - BREAKING CHANGES:bundleFilename,sourceMapFilename, andassetsPathhave been removed from bothOutputPluginandRepackPluginconfigurations. These properties are now controlled only through their respective CLI flags. -
#975
7c9232cThanks @jbroma! - DeprecategetPublicPathutility. ThegetPublicPathfunction is now a no-op marked as deprecated, while public path configuration is handled automatically under the hood. -
#976
c29ba2fThanks @jbroma! - BREAKING: Simplified RepackPlugin configuration by removingcontext,mode, andsourceMapsoptions in favor of using values from Rspack/webpack configuration.Made
platformandoutputoptions optional (they are now inferred automatically). The plugin configuration object is now entirely optional, allowing for minimal setup withnew Repack.RepackPlugin(). -
#720
a7b557eThanks @jbroma! - Support for Rspack & Webpack simultaneously -
#958
1bf1b1cThanks @jbroma! - BREAKING CHANGE: Added a strict configuration cascade system (CLI Flags -> Config Values -> Command Defaults -> Webpack/Rspack Defaults) to provide clear and predictable configuration resolution.CLI arguments now always take highest precedence and cannot be overridden by config files, ensuring consistent behavior across all commands.
-
#786
cf42d14Thanks @jbroma! - Enable new debugger (React Native DevTools) by default, remove support for legacy remote debugging -
#962
22d0e8fThanks @jbroma! - BREAKING CHANGES: RemovedentryNameconfig option fromDevelopmentPlugin,OutputPluginandRepackPlugin- it is now obtained automatically from configuration
Minor Changes
-
#817
c97da24Thanks @jbroma! - Add Repack Reanimated Plugin which integrates react-native-reanimated into the project -
#674
9f4ad85Thanks @jbroma! - Add support for Module Federation V2 -
#1021
a87576bThanks @jbroma! - Make iOS ScriptConfig properties non-atomic for better performance -
#784
f8af03cThanks @zmzlois! - addreact-native-linear-gradientto flow type module loading rule support -
#778
2344162Thanks @jbroma! - Add--configoption to commands, deprecate--webpackConfigoption -
#810
46330d7Thanks @jbroma! - Include@rspack/plugin-react-refreshwith Re.Pack instead of requiring user to install it -
#981
05183a8Thanks @jbroma! - Resolve[platform]&[context]placeholders inconfig.output.path -
#997
bff2947Thanks @jbroma! - AddedgetAssetTransformRulesutility function to simplify setting up asset transformation rules in both Webpack and Rspack projects. -
#981
05183a8Thanks @jbroma! - Add config defaults forconfig.outputandconfig.optimization -
#765
efff0c2Thanks @jbroma! - Add default rules for transpiling popular flow typed packages -
#985
2cfd84fThanks @jbroma! - Assets loader can now be called without specyifing platform explicitly - the platform is now inferred automatically from configuration -
#872
0e600d4Thanks @jbroma! - Enable inlining entry modules by making runtime initialization from React renderers a no-op -
#702
495203dThanks @jbroma! - Enable dev-server to serve source assets alongside build artifacts -
#763
e433584Thanks @thiagobrez! - Add getModulePaths utility to generate include and exclude paths for modules in the bundler config -
#828
b1a010aThanks @jbroma! - Run adb reverse for all available devices by default -
#1024
5e68814Thanks [@borisyankov](https://git...
5.0.0-rc.12
5.0.0-rc.11
5.0.0-rc.11
Major Changes
-
#977
e12f63dThanks @jbroma! - BREAKING:config.devtoolis now used to control the behaviour of generated sourcemaps. To enable sourcemaps again, please removedevtool: falsefrom your config or set it explicitly to one of valid values (e.g.source-map).Introduced a dedicated
SourceMapPluginthat consolidates sourcemap configuration and improves sourcemap handling by relying on thedevtooloption. The plugin is part of the Repack plugin and does not need to be added separately. -
#912
07d0566Thanks @jbroma! - BREAKING CHANGES: RemoveddevServerEnabledoption from assets-loader anddevServerfrom Repack plugin configuration - they are now obtained automatically from configuration.Added new
config.devServerfield to configure development server properties with type-safe http/https configuration, special host values (local-ip, local-ipv4, local-ipv6), and enhanced HTTPS configuration with full HttpsServerOptions support. -
#987
97cd8e8Thanks @jbroma! - BREAKING CHANGES:bundleFilename,sourceMapFilename, andassetsPathhave been removed from bothOutputPluginandRepackPluginconfigurations. These properties are now controlled only through their respective CLI flags. -
#975
7c9232cThanks @jbroma! - DeprecategetPublicPathutility. ThegetPublicPathfunction is now a no-op marked as deprecated, while public path configuration is handled automatically under the hood. -
#976
c29ba2fThanks @jbroma! - BREAKING: Simplified RepackPlugin configuration by removingcontext,mode, andsourceMapsoptions in favor of using values from Rspack/webpack configuration.Made
platformandoutputoptions optional (they are now inferred automatically). The plugin configuration object is now entirely optional, allowing for minimal setup withnew Repack.RepackPlugin(). -
#958
1bf1b1cThanks @jbroma! - BREAKING CHANGE: Added a strict configuration cascade system (CLI Flags -> Config Values -> Command Defaults -> Webpack/Rspack Defaults) to provide clear and predictable configuration resolution.CLI arguments now always take highest precedence and cannot be overridden by config files, ensuring consistent behavior across all commands.
-
#962
22d0e8fThanks @jbroma! - BREAKING CHANGES: RemovedentryNameconfig option fromDevelopmentPlugin,OutputPluginandRepackPlugin- it is now obtained automatically from configuration
Minor Changes
-
#981
05183a8Thanks @jbroma! - Resolve[platform]&[context]placeholders inconfig.output.path -
#997
bff2947Thanks @jbroma! - AddedgetAssetTransformRulesutility function to simplify setting up asset transformation rules in both Webpack and Rspack projects. -
#981
05183a8Thanks @jbroma! - Add config defaults forconfig.outputandconfig.optimization -
#985
2cfd84fThanks @jbroma! - Assets loader can now be called without specyifing platform explicitly - the platform is now inferred automatically from configuration -
#984
1f470a1Thanks @jbroma! -getResolveOptionscan be now called without any params and theplatformextensions will be resolved automatically. This makesgetResolveOptionsuseful when used in static configs whereplatformvariable isn't exposed. -
#967
3f22966Thanks @jbroma! - Use own custom ReactRefreshLoader in all configurations (Rspack & webpack) -
#991
c36f778Thanks @jbroma! - AddedgetJsTransformRulesutility function to simplify setting up JavaScript transformation rules in Rspack for React Native projects.
Patch Changes
-
#956
1945e75Thanks @szymonrybczak! - Deprecate--webpackConfiginstartcommand and make deprecation warning more informative -
#908
1953287Thanks @jbroma! - Addreact-native-cameraandreact-native-view-shotto flow libs -
#960
07b2e20Thanks @jbroma! - Remove the workaround for reordering entry dependencies when using ModuleFederation -
#950
580bf30Thanks @szymonrybczak! - Don't error on missing--entry-filewhen entry is defined inrspack.config.jsorwebpack.config.js. -
#980
01d9583Thanks @jbroma! - Normalize the configs after merging them with the defaults and CLI overrides -
#988
de82bbfThanks @jbroma! - Remove unusedplatformparam from LoggerPlugin -
#989
88474eaThanks @jbroma! - Makeplatformoption of DevelopmentPlugin optional -
#944
928a493Thanks @szymonrybczak! - Add missingtry/catchcondition when opening React Native DevTools. -
#968
59d9d02Thanks @jbroma! - Add consitent plugin naming and error message formatting -
#952
8301f5cThanks @hosseinmd! - refactor Android'sRemoteScriptLoader.ktto reusescriptsDir -
#949
a8560b9Thanks @szymonrybczak! - Improve error handling by hiding useless stack traces. -
#955
49b8ddfThanks @hosseinmd! - fix: download, write, run instead of download, write, read, run