5.2.0
5.2.0
Highlights
✨ Read the Re.Pack 5.2 blog post for more details.
Minor Changes
-
#1228
e480ed6dd21cabc114601e8d42afd936ad2a6d75Thanks @jbroma! - Drop dependency on@react-native/dev-middlewareand obtain dev middleware dynamically depending on version of React Native in the project -
#1226
396593afc992cd0357b49de08d6cdb0df89e3c9dThanks @jbroma! - Reanimated Plugin: Add support for Reanimated 4 -
#1172
b15b7d77a60747c11d82fd9f7cf56833527e4caaThanks @jbroma! - Handle displaying relative paths to sourcefiles in DevTools similarly to Metro -
#1225
47bf30cc7814f969ba69bedd814ccf4c21320c44Thanks @jbroma! - Add support for React Native 0.80 flow transforms -
#1206
d41d7a39c2627256eeaea314fecafcca3692c906Thanks @jbroma! - IntroduceBabelSwcLoader, available as@callstack/repack/babel-swc-loaderwhich combines Babel and SWC into one loader, enabling Babel level of customiziability while maitaning good build performance. Can be run in parallel withexperiments.parallelLoaderin Rspack. -
#1206
d41d7a39c2627256eeaea314fecafcca3692c906Thanks @jbroma! - ReanimatedPlugin: skip running the loader whenbabel-swc-loaderis detected as part of loader chain -
#1096
023a4a92c009cf92eba6c7ca133645a72be0a569Thanks @szymonrybczak! - Add support for TypeScript configs & introduce defineWebpackConfig & defineRspackConfig helpers for fully typed configuration -
#1248
1e7d43dd302daaea4ea26be9b1b792aa7ce905a3Thanks @jbroma! - Report Rspack compilation progress in the DevServer logs -
#1227
cc9c132dd29380b8e63b4b2c266d1de9c513100eThanks @jbroma! - Support RN 80 in React Native DevTools integration -
#1257
9c54343e4f93a185f4fe2d176360a05521ea5358Thanks @jbroma! - Add--max-workersoption to start & bundle commands. By default the number of workers is derived from available cores. This option is only effective for Rspack configurations -
#1204
c7bb829fb19b154fe7d45ea25fd12439e0ea1749Thanks @jbroma! - Support 16kb page alignment on Android -
#1206
d41d7a39c2627256eeaea314fecafcca3692c906Thanks @jbroma! - IntroduceBabelLoader, available as@callstack/repack/babel-loaderwhich utilizeshermes-parserfor JS & Flow files and default babel parser for TS files. Can be run in parallel withexperiments.parallelLoaderin Rspack. -
#1209
ecab9586c9e0af8ba3b5ebb9fe001b1cc46ec82fThanks @jbroma! - Support Rspack 1.4 perfetto tracing method -
#1232
2fdeed7abb6c4ed9d1a0d58839ae4287427b837cThanks @jbroma! - Declare support for React Native 0.80 -
#1260
6201bcd1c25673c4bf5a6fa194c6da022da55f2dThanks @jbroma! - Declare support for React Native 0.81 -
#1175
2590cd86ad57d68ec1573173d48ba4e101d7740bThanks @ilteoood! - feat: allow passing additional SVGR options throughgetAssetTransformRules -
#1262
bd8f287ddc69010bd5a02a93c9248ee94efcd283Thanks @jbroma! - Enableexperiments.parallelLoaderby default for Rspack configurations -
#1234
e0ffbc0816240150c13ec9008e8a14593177ecb5Thanks @jbroma! - Add support for adding custom middlewares to the DevServer throughsetupMiddlewaresconfiguration option -
#1186
38d8d1e0b477227af6d64ab287d38556e1b73222Thanks @ilteoood! - the signature of the JavaScript code is now verified even if the bundle is loaded from the file system
Patch Changes
-
#1185
7db4e4118eeaf119c742a2a477aa773155f5eba9Thanks @tringenbach! - Resolvereact-nativepackage exports condition beforeimportorrequire -
#1172
b15b7d77a60747c11d82fd9f7cf56833527e4caaThanks @jbroma! - Fix opening stack frame source file from LogBox -
#1223
51d44f37790c081d19407724e6bdbb40cbd561ecThanks @jbroma! - Addtransform-parametersandtransform-function-nameto the SWC preset -
#1258
f2b5f23853c58cf1bd4b300888229635917d9c6aThanks @jbroma! - Configure the default minimizer for Rspack and webpack configuration -
#1252
7dbf991677ec350bfb7b75a187c0101f20bdadf0Thanks @jbroma! - FixCodeSigningPluginoverwriting Hermes bytecode bundles with signed JS bundles -
#1172
b15b7d77a60747c11d82fd9f7cf56833527e4caaThanks @jbroma! - Don't include 3rd party lib sourcemaps by default into the final sourcemaps -
#1266
27c6e2246345cb8b0f19f832e71bedf2fd733e08Thanks @jbroma! - Handle 'transform-dynamic-import' inbabel-swc-loader -
#1274
e613c04cfc7e472d5555ac0795c31702f6978b1eThanks @jbroma! - Dont use lazy imports by default when using babel-swc-loader -
#1265
b28d2b20c36cb0994ba300115a7eea360398c700Thanks @jbroma! - Let SWC handletransform-typescriptwhen usingbabel-swc-loader -
#1276
4de8bef827e6d3f7898f61425866ef4522d5a304Thanks @jbroma! - Set NODE_ENV based on args.dev option -
#1222
02862e93bc31c5c478341abeefd52d16388d1341Thanks @jbroma! - Addreact-native-modal-datetime-pickerto list of libs with flow types -
#1268
a9ac9f2d66a8101dc61dca950898d2fcd707b89cThanks @jbroma! - Use noop handler for local filesystem prefetch calls on Android -
#1261
0f3757147669652b30b9a5b0cc99f9e7a1cee0a8Thanks @jbroma! - Use single terminal instance per process to ensure proper log message scheduling -
#1246
c53900dc070bf34b15ef6b36fccbfaf373d67e5eThanks @jbroma! - FixREPACK_VERBOSEnot affecting dev server logs -
#1210
5867b52a121dd3d9ef9591258e2013e660502b6cThanks @ilteoood! - upgraded nimbus jose to latest v9 -
#1267
1b71dcfd87d050c0979c054fc6a4c02128821c15Thanks @jbroma! - Use consistent name as a caller for babel & swc -
#1273
03e10658bfa05d75fbd096376c8453dcf655ad94Thanks @jbroma! - Use Terser for Rspack 1.5.0 and above -
#1272
075c7977f41359618a89eb0249125d0b642f654eThanks @jbroma! - Unset DevServer configuration when using the bundle command -
#1243
0afd84b8b2b1909fbcafe9792ea656e622ff37e7Thanks @longb1997! - Fix support for file protocol in ScriptManager native module when loading scripts (Android) & prefetching scripts (iOS) -
#1203
90e58901670e1327f4054be7e20fe3f6e2845946Thanks @jbroma! - Fix type mismatch in FileSystemScriptLoader on Android -
#1270
ece451c750a42c0c6591c488f6afc144bffcfdb8Thanks @jbroma! - ReanimatedPlugin: add option to disable transforms. This is useful when usingbabel-swc-loaderorbabel-loader