{"library":"rocket-bundler","title":"Rocket Bundler","description":"Rocket Bundler is the JavaScript bundler for React Native, optimized for fast reload cycles, startup, and bundling speeds. It is designed to scale with thousands of modules and is integrated by default in React Native projects. The current stable version is 0.14.2. Unlike generic bundlers (Webpack, Parcel), it is purpose-built for React Native's Metro-compatible API and ecosystem. It was formerly part of the react-native repository to allow more focused maintenance and faster issue response.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install rocket-bundler"],"cli":{"name":"rocket-bundler","version":null}},"imports":["import { bundle } from 'rocket-bundler'","import { Server } from 'rocket-bundler'","import { loadConfig } from 'rocket-bundler'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { bundle } from 'rocket-bundler';\nimport { loadConfig } from 'rocket-bundler';\n\nconst config = await loadConfig({\n  projectRoot: './',\n  transformer: {\n    babelTransformerPath: require.resolve('metro-react-native-babel-transformer'),\n  },\n  serializer: {\n    // custom serializer options\n  },\n});\n\nconst result = await bundle({\n  config,\n  entryFile: 'index.js',\n  platform: 'android',\n  dev: false,\n  bundleOutput: './output.js',\n  sourceMapOutput: './output.map',\n});\n\nconsole.log('Bundle size:', result.stats.files['bundle'].size);","lang":"typescript","description":"Shows how to load configuration and bundle a React Native app using the rocket-bundler API.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}