Customizations to the build process of JSS React Native apps
Version: 22.x
We have customized the build process for JSS React Native applications as follows::
-
A custom
babelpreset that encapsulates otherbabelplugins - this allows for swapping module dependencies at build-time based on the application mode used during development. Read more about available application modes for JSS React Native applications. -
The addition of the
--reset-cacheargument to thestartscript provided by the Metro bundler - this argument instructs the bundler to ignore its dependency cache during the build process, ensuring that thebabelcustomizations mentioned previously are invoked.