react-native ram-bundle

Builds javascript as a "Random Access Module" bundle for offline use

Options

NameDescription
--entry-file <file>Path to the root JS file, either absolute or relative to JS root
--platform <platform>Either "ios" or "android" (default: "ios")
--transformer <transformer>Specify a custom transformer to be used
--dev [boolean]If false, warnings are disabled and the bundle is minified (default: true)
--minify [boolean]Allows overriding whether bundle is minified. This defaults to false if dev is true, and true if dev is false. Disabling minification can be useful for speeding up production builds for testing purposes
--bundle-output <output file>File name where to store the resulting bundle, ex. /tmp/groups.bundle
--bundle-encoding <encoding>Encoding the bundle should be written in (https://nodejs.org/api/buffer.html#buffer_buffer). (default: "utf8")
--max-workers <Number of workers>Specifies the maximum number of workers the worker-pool will spawn for transforming files. This defaults to the number of the cores available on your machine
--sourcemap-output <sourcemap-output>File name where to store the sourcemap file for resulting bundle, ex. /tmp/groups.map
--sourcemap-sources-root <root>Path to make sourcemap's sources entries relative to, ex. /root/dir
--sourcemap-use-absolute-pathReport SourceMapURL using its full path
--assets-dest <directory>Directory name where to store assets referenced in the bundle
--unstable-transform-profile <transform-profile>Experimental, transform JS for a specific JS engine. Currently supported: hermes, hermes-canary, default
--reset-cacheRemoves cached files
--read-global-cacheTry to fetch transformed JS code from the global cache, if configured
--config <string>Path to the CLI configuration file
--indexed-ram-bundleForce the "Indexed RAM" bundle file format, even when building for android
-h, --helpOutput usage information