react_native_bundle

Metro and Hermes release bundle.

Description#

Runs Metro for one platform and optionally compiles its output with the Hermes compiler paired to the locked React Native version. Hermes source maps are composed with Metro source maps into one final map.

Attributes#

AttributeTypeRequiredDefaultDescription
platformstringyesios or android
entrystringnoindex.jsJavaScript entry file
bundle_namestringnomain.jsbundleFinal bundle filename
metro_configstringnoPackage-relative Metro configuration
devboolnofalseGenerate a development bundle
minifyboolnotrueMinify Metro output
hermesboolnotrueCompile to Hermes bytecode
bundle_argslist<string>no[]Additional Metro arguments
nodestringnonodeNode.js executable

The deps edge accepts exactly one react_native_dependency_set. Apple and Android application targets can consume the provider to stage this target's declared JavaScript sources for native non-debug bundling.

On macOS, x86-64 Linux, and x86-64 Windows, Once resolves the Hermes compiler through the locked React Native package. This supports both hoisted and isolated dependency layouts. Other hosts fail during analysis with a clear unsupported-host message.

Capabilities#

The build capability exposes default, bundle, source_map, and assets.