Registry / devops / rn-bundler

rn-bundler

JSON →
library1.0.7jsnpmunverified

A CLI tool that extends the official React Native Metro bundler to support stable module IDs and bundle splitting. Version 1.0.7 provides hash-based module IDs (content + path) for more stable splits compared to incremental IDs or project-name-based approaches. Enables splitting into base and business bundles to reduce download/load times. Last release date unknown; appears to be in maintenance mode. Key differentiators: uses content hash for module IDs, avoids reliance on project name, and provides manifest-output and exclude options for split bundling.

npm install rn-bundler
INSTALL
IMPORT
SIG · RN-BUNDLER
R
rn-bundler
devopsjavascriptv1.0.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Shows how to bundle a React Native project with stable module IDs using the metro-bundler-cli CLI tool.

// Install: npm install --global metro-bundler-cli // Then run: metro-bundler bundle \ --entry-file index.js \ --bundle-output dist/business.jsbundle \ --assets-dest dist \ --platform ios \ --dev false \ --use-stable-id true \ --manifest-output dist/manifest.json
rn-bundler --version
Debug
Known issues
gotchaStable IDs are not the default; must explicitly pass --use-stable-id true to enable hash-based module IDs.
fix
Add --use-stable-id true to your bundle command.
affects: >=1.0.0
gotchaThis tool is a thin wrapper over metro bundler; metro must be installed and configured in your project.
fix
Ensure react-native (which includes metro) is installed as a devDependency.
affects: >=1.0.0
deprecatedThe package is no longer actively maintained; check for alternatives or use with caution.
fix
Consider migrating to a maintained bundler solution.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'metro'
metro-bundler-cli expects metro to be installed as a peer dependency.
fix
Install react-native or metro manually: npm install --save-dev metro
Error: --use-stable-id flag not recognized
The flag must be used with the bundled command; verify CLI version.
fix
Ensure you are using the global installed metro-bundler-cli (not metro directly).
Upgrade
Version history
1.0.7latest on npm
Audit
Dependencies
react-nativeoptionalDepends on React Native's metro bundler for bundling React Native projects.
Agent activity
4 hits · last 30 days
node
4
Resources
rn-bundler — npm install rn-bundler · libregistry