Skip to content

Releases: callstack/repack

5.0.5

22 Mar 16:29
1c09b88
Compare
Choose a tag to compare

Patch Changes

  • eac08f2 Thanks @jbroma! - Fix failure to load project configuration in Node versions with require(esm)

  • c6a4325 Thanks @jbroma! - Fix publicPath not using port overriden through CLI in development

5.0.4

18 Mar 13:08
3ce83dd
Compare
Choose a tag to compare

Patch Changes

  • #1093 89de28f Thanks @jbroma! - Use newest minor version of Re.Pack when creating a project with repack-init

  • #1090 71f33b8 Thanks @jbroma! - Fix resolving MF2 remote entries when using manifest as entrypoint through a default RepackResolverPlugin

5.0.3

12 Mar 18:24
ef624ce
Compare
Choose a tag to compare

Patch Changes

  • #1085 c2852df Thanks @jbroma! - Fix emitting to the same file when developing a host-type app with module-federation

  • #1086 8e8aad6 Thanks @jbroma! - Hide "JavaScriptLogs have moved..." message

  • #1087 2f0835a Thanks @jbroma! - Drop having @react-native-community/cli as peer dependency

5.0.2

12 Mar 12:39
86ed162
Compare
Choose a tag to compare

Patch Changes

  • #1081 30d7330 Thanks @jbroma! - Drop dependency on @react-native-community/cli-server-api in the DevServer

  • #1079 2ac8f7b Thanks @jbroma! - Fix repack-init picking up wrong root directory when migrating existing projects

5.0.1

06 Mar 15:40
47277f7
Compare
Choose a tag to compare

Patch Changes

  • #1075 dac01e4 Thanks @szymonrybczak! - Use default publicPath in development instead of enforcing it in DevelopmentPlugin

  • #1074 54fa1cd Thanks @szymonrybczak! - Remove enforcement of output filenames in dev mode

  • #1065 e08a805 Thanks @jbroma! - Fix normalization of resolve.extensions with [platform] placeholder & set publicPath to noop explicitly when using deprecated getPublicPath helper function

5.0.0

28 Feb 09:58
5d197cf
Compare
Choose a tag to compare

✨ 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:


Major Changes

  • #977 e12f63d Thanks @jbroma! - BREAKING: config.devtool is now used to control the behaviour of generated sourcemaps. To enable sourcemaps again, please remove devtool: false from your config or set it explicitly to one of valid values (e.g. source-map).

    Introduced a dedicated SourceMapPlugin that consolidates sourcemap configuration and improves sourcemap handling by relying on the devtool option. The plugin is part of the Repack plugin and does not need to be added separately.

  • #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
  • #825 18f2eef Thanks @jbroma! - Removed --reverse-port CLI option and replaced it with --no-reverse-port CLI option.

  • #912 07d0566 Thanks @jbroma! - BREAKING CHANGES: Removed devServerEnabled option from assets-loader and devServer from Repack plugin configuration - they are now obtained automatically from configuration.

    Added new config.devServer field 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 97cd8e8 Thanks @jbroma! - BREAKING CHANGES: bundleFilename, sourceMapFilename, and assetsPath have been removed from both OutputPlugin and RepackPlugin configurations. These properties are now controlled only through their respective CLI flags.

  • #975 7c9232c Thanks @jbroma! - Deprecate getPublicPath utility. The getPublicPath function is now a no-op marked as deprecated, while public path configuration is handled automatically under the hood.

  • #976 c29ba2f Thanks @jbroma! - BREAKING: Simplified RepackPlugin configuration by removing context, mode, and sourceMaps options in favor of using values from Rspack/webpack configuration.

    Made platform and output options optional (they are now inferred automatically). The plugin configuration object is now entirely optional, allowing for minimal setup with new Repack.RepackPlugin().

  • #720 a7b557e Thanks @jbroma! - Support for Rspack & Webpack simultaneously

  • #958 1bf1b1c Thanks @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 cf42d14 Thanks @jbroma! - Enable new debugger (React Native DevTools) by default, remove support for legacy remote debugging

  • #962 22d0e8f Thanks @jbroma! - BREAKING CHANGES: Removed entryName config option from DevelopmentPlugin, OutputPlugin and RepackPlugin - it is now obtained automatically from configuration

Minor Changes

  • #817 c97da24 Thanks @jbroma! - Add Repack Reanimated Plugin which integrates react-native-reanimated into the project

  • #674 9f4ad85 Thanks @jbroma! - Add support for Module Federation V2

  • #1021 a87576b Thanks @jbroma! - Make iOS ScriptConfig properties non-atomic for better performance

  • #784 f8af03c Thanks @zmzlois! - add react-native-linear-gradient to flow type module loading rule support

  • #778 2344162 Thanks @jbroma! - Add --config option to commands, deprecate --webpackConfig option

  • #810 46330d7 Thanks @jbroma! - Include @rspack/plugin-react-refresh with Re.Pack instead of requiring user to install it

  • #981 05183a8 Thanks @jbroma! - Resolve [platform] & [context] placeholders in config.output.path

  • #997 bff2947 Thanks @jbroma! - Added getAssetTransformRules utility function to simplify setting up asset transformation rules in both Webpack and Rspack projects.

  • #981 05183a8 Thanks @jbroma! - Add config defaults for config.output and config.optimization

  • #765 efff0c2 Thanks @jbroma! - Add default rules for transpiling popular flow typed packages

  • #985 2cfd84f Thanks @jbroma! - Assets loader can now be called without specyifing platform explicitly - the platform is now inferred automatically from configuration

  • #872 0e600d4 Thanks @jbroma! - Enable inlining entry modules by making runtime initialization from React renderers a no-op

  • #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

  • #828 b1a010a Thanks @jbroma! - Run adb reverse for all available devices by default

  • #1024 5e68814 Thanks [@borisyankov](https://git...

Read more

5.0.0-rc.12

20 Feb 10:17
c206e7a
Compare
Choose a tag to compare
5.0.0-rc.12 Pre-release
Pre-release

Minor Changes

  • #1005 4e10aa6 Thanks @jbroma! - Reworked DevServer HMR pipeline - improved performance & recovery from errors

5.0.0-rc.11

17 Feb 18:46
6beba42
Compare
Choose a tag to compare
5.0.0-rc.11 Pre-release
Pre-release

5.0.0-rc.11

Major Changes

  • #977 e12f63d Thanks @jbroma! - BREAKING: config.devtool is now used to control the behaviour of generated sourcemaps. To enable sourcemaps again, please remove devtool: false from your config or set it explicitly to one of valid values (e.g. source-map).

    Introduced a dedicated SourceMapPlugin that consolidates sourcemap configuration and improves sourcemap handling by relying on the devtool option. The plugin is part of the Repack plugin and does not need to be added separately.

  • #912 07d0566 Thanks @jbroma! - BREAKING CHANGES: Removed devServerEnabled option from assets-loader and devServer from Repack plugin configuration - they are now obtained automatically from configuration.

    Added new config.devServer field 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 97cd8e8 Thanks @jbroma! - BREAKING CHANGES: bundleFilename, sourceMapFilename, and assetsPath have been removed from both OutputPlugin and RepackPlugin configurations. These properties are now controlled only through their respective CLI flags.

  • #975 7c9232c Thanks @jbroma! - Deprecate getPublicPath utility. The getPublicPath function is now a no-op marked as deprecated, while public path configuration is handled automatically under the hood.

  • #976 c29ba2f Thanks @jbroma! - BREAKING: Simplified RepackPlugin configuration by removing context, mode, and sourceMaps options in favor of using values from Rspack/webpack configuration.

    Made platform and output options optional (they are now inferred automatically). The plugin configuration object is now entirely optional, allowing for minimal setup with new Repack.RepackPlugin().

  • #958 1bf1b1c Thanks @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 22d0e8f Thanks @jbroma! - BREAKING CHANGES: Removed entryName config option from DevelopmentPlugin, OutputPlugin and RepackPlugin - it is now obtained automatically from configuration

Minor Changes

  • #981 05183a8 Thanks @jbroma! - Resolve [platform] & [context] placeholders in config.output.path

  • #997 bff2947 Thanks @jbroma! - Added getAssetTransformRules utility function to simplify setting up asset transformation rules in both Webpack and Rspack projects.

  • #981 05183a8 Thanks @jbroma! - Add config defaults for config.output and config.optimization

  • #985 2cfd84f Thanks @jbroma! - Assets loader can now be called without specyifing platform explicitly - the platform is now inferred automatically from configuration

  • #984 1f470a1 Thanks @jbroma! - getResolveOptions can be now called without any params and the platform extensions will be resolved automatically. This makes getResolveOptions useful when used in static configs where platform variable isn't exposed.

  • #967 3f22966 Thanks @jbroma! - Use own custom ReactRefreshLoader in all configurations (Rspack & webpack)

  • #991 c36f778 Thanks @jbroma! - Added getJsTransformRules utility function to simplify setting up JavaScript transformation rules in Rspack for React Native projects.

Patch Changes

5.0.0-rc.10

27 Jan 17:54
6b26df2
Compare
Choose a tag to compare
5.0.0-rc.10 Pre-release
Pre-release

Minor Changes

  • #901 3515dd6 Thanks @jbroma! - Normalize compiler.name to always be equal to the target platform across all commands

  • #896 44273d2 Thanks @jbroma! - Add support for Expo Modules through a dedicated optional plugin called @callstack/repack-plugin-expo-modules

5.0.0-rc.9

23 Jan 21:10
89b68e1
Compare
Choose a tag to compare
5.0.0-rc.9 Pre-release
Pre-release

Minor Changes

Patch Changes