{"full_name":"react/metro","owner":"react","name":"metro","shard":"1","url":"https://github.com/react/metro","description":"🚇 The JavaScript bundler for React Native","homepage":"https://metrobundler.dev","topics":["javascript","react-native","bundler"],"tag_pages":["bundler","javascript","react-native"],"language":"JavaScript","license":"MIT","avatar":"https://avatars.githubusercontent.com/u/102812?v=4","created_at":"2016-12-14T23:02:54Z","pushed_at":"2026-11-15T01:24:26Z","metrics":{"stars":5661,"forks":716,"watchers":101,"issues":804,"prs":1270,"releases":166,"issues_open":91,"issues_closed":713,"prs_open":81,"prs_closed":981,"prs_merged":208,"discussions":11},"growth":{"day":{"stars":0,"forks":0,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[5661,5661,5662,5663,5663,5661,5661],"forks":[715,716,716,716,716,716,716],"watchers":[null,100,100,100,100,100,101],"issues_open":[null,92,92,92,91,91,91],"prs_open":[null,77,81,80,80,81,81]},"boards":{},"same_owner":[{"full_name":"react/react","name":"react","shard":"1","boards":{"daily_rate":198,"total":23}},{"full_name":"react/react-native","name":"react-native","shard":"1","boards":{"total":93}},{"full_name":"react/create-react-app","name":"create-react-app","shard":"1","boards":{"total":140}},{"full_name":"react/yoga","name":"yoga","shard":"1","boards":{}}],"issues":[{"number":52,"title":"Dynamic import not working","comments":44,"created_at":"2017-09-13T08:26:53Z"},{"number":1480,"title":"Module Federation Support","comments":22,"created_at":"2025-03-31T15:10:38Z"},{"number":1405,"title":"Error: EMFILE: too many open files, watch","comments":21,"created_at":"2024-12-14T07:23:06Z"},{"number":104,"title":"Respect/Merge Input Source Maps With Generated Source Map Data","comments":20,"created_at":"2017-12-06T01:46:41Z"},{"number":331,"title":"concurrent builds fail due to shared use of /tmp/metro-cache/","comments":18,"created_at":"2018-12-11T11:24:21Z"},{"number":1377,"title":"Importing Node-API .node modules in Expo Router API Routes?","comments":12,"created_at":"2024-10-27T17:22:50Z"},{"number":519,"title":"Ignoring packages during dependency resolution","comments":12,"created_at":"2020-02-19T17:29:28Z"},{"number":814,"title":"Metro seems to leave orphaned watchman watches frequently","comments":11,"created_at":"2022-05-03T14:53:01Z"}],"discussions":[{"number":1843,"title":"Security: vulnerable dependency image-size (CVE-2025-71329/71330) — maintained drop-in available","comments":0,"category":"General","created_at":"2026-08-10T17:09:42Z"},{"number":1842,"title":"Security: vulnerable dependency image-size (CVE-2025-71329/71330) — maintained drop-in available","comments":2,"category":"General","created_at":"2026-08-10T17:08:20Z"},{"number":1829,"title":"Security: vulnerable dependency image-size (CVE-2025-71329/71330) — maintained drop-in available","comments":0,"category":"General","created_at":"2026-08-10T17:00:52Z"},{"number":1814,"title":"Security: vulnerable dependency image-size (CVE-2025-71329/71330) — maintained drop-in available","comments":0,"category":"General","created_at":"2026-08-10T16:59:44Z"},{"number":1813,"title":"Security: vulnerable dependency image-size (CVE-2025-71329/71330) — maintained drop-in available","comments":0,"category":"General","created_at":"2026-08-10T16:59:42Z"},{"number":1812,"title":"Security: vulnerable dependency image-size (CVE-2025-71329/71330) — maintained drop-in available","comments":0,"category":"General","created_at":"2026-08-10T16:53:34Z"},{"number":1811,"title":"Security: vulnerable dependency image-size (CVE-2025-71329/71330) — maintained drop-in available","comments":0,"category":"General","created_at":"2026-08-10T16:48:25Z"},{"number":1780,"title":"Changes to a symlinked workspace package aren't picked up until a full Metro restart (Fast Refresh and manual reload both serve stale)","comments":3,"category":"Q&A","created_at":"2026-07-15T14:37:23Z"}],"latest_release":{"name":"v0.88.0","tag":"v0.88.0","published_at":"2026-11-06T18:22:41Z","body":" - **[Breaking]**: Resolver: Read `\"exports\"` from the package root, and apply `\"browser\"` redirections after it, by default. Set `resolver.unstable_resolveExportsFromPackageRoot` and `resolver.unstable_applyBrowserSpecAfterExports` to `false` to opt out (https://github.com/react/metro/pull/2174 by @robhogan)\r\n - **[Breaking]**: Default `transformer.asyncRequireModulePath` and `resolver.emptyModulePath` to `metro:runtime/...`, which aren't file paths. Custom resolvers must delegate unhandled `metro:` specifiers to `context.resolveRequest` (https://github.com/react/metro/pull/2180 by @robhogan)\r\n - **[Breaking]**: Resolve the module system via `metro:runtime/polyfills/require`. A custom `resolver.resolveRequest` must delegate `metro:` specifiers it doesn't handle to `context.resolveRequest` (https://github.com/react/metro/pull/2184 by @robhogan)\r\n - **[Breaking]**: `transformer.globalPrefix` now also prefixes `__r`, `__c`, `__registerSegment` and `__accept`, and the default run statement. Code that calls these by name must apply the prefix (https://github.com/react/metro/pull/2186 by @robhogan)\r\n - **[Breaking]**: Remove the deprecated `redirectModulePath` from `ResolutionContext`. A custom resolver should drop any call to it and delegate to `context.resolveRequest` or `resolve`, which already apply `\"browser\"` redirections and return `{type: 'empty'}` for `false` (https://github.com/react/metro/pull/2181 by @robhogan)\r\n - **[Breaking]**: Remove the deprecated `doesFileExist` from `ResolutionContext`, and the `DoesFileExist` type from `metro-resolver` (use `fileSystemLookup`) (https://github.com/react/metro/pull/2181 by @robhogan)\r\n - **[Breaking]**: `ResolutionContext.isESMImport` is required (https://github.com/react/metro/pull/2182 by @robhogan)\r\n - **[Breaking]**: Async bundle and HMR module URLs keep the file extension (`foo.js.bundle`), fixing lazy loading of `.cjs` and `.mjs` files, and of files that share a name with a sibling (https://github.com/react/metro/pull/1990 by @dasjideepak)\r\n - **[Breaking]**: Babel transformers can no longer return a `functionMap`. Apply the `plugins` passed by Metro and return the resulting Babel `metadata` to keep function names in stack traces (https://github.com/react/metro/pull/2157 by @robhogan)\r\n - **[Breaking]**: `/symbolicate` no longer reads `req.rawBody`, and fails if a middleware has already read the request body (https://github.com/react/metro/pull/2158 by @robhogan)\r\n - **[Breaking]**: Remove the `bundle_transform_progressed_throttled` event from `TerminalReportableEvent`. `TerminalReporter` subclasses should handle `bundle_transform_progressed`, which their `_log` now receives for every progress update (https://github.com/react/metro/pull/2170 by @vzaidman)\r\n - **[Breaking]**: Source and JSON files containing the reserved string `_$$_METRO_`, including in comments and string literals, now fail to transform (https://github.com/react/metro/pull/2155 by @robhogan)\r\n - **[Breaking]**: Remove the deprecated, always-`true` `hot` option from `getTransformOptions` (https://github.com/react/metro/pull/2159 by @robhogan)\r\n - **[Feature]**: Custom serializers receive the reserved string as `options.reservedString` (https://github.com/react/metro/pull/2155 by @robhogan)\r\n - **[Fix]**: Don't print the terminal status in the middle of bursts of output written outside of it, and don't wait for a pending status update before exiting (https://github.com/react/metro/pull/2170 by @vzaidman)\r\n - **[Fix]**: Fall back to file-based resolution, instead of throwing a `TypeError`, when a package's `\"exports\"` field is not a string, array or object (https://github.com/react/metro/pull/2187 by @kwy404)\r\n - **[Fix]**: Fix relative symlinks on a different Windows drive than the project root (https://github.com/react/metro/pull/2161 by @ramya-2196)\r\n - **[Performance]**: ~5-10% faster resolution (https://github.com/react/metro/pull/2181 by @robhogan)\r\n\r\n> NOTE: Experimental features are not covered by semv","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}