🚇 The JavaScript bundler for React Native
MIT License
Bot releases are hidden (Show)
server.forwardClientLogs
config option, to allow suppressing client console logs in Metro output. (https://github.com/facebook/metro/pull/1192 by @huntie)constant-folding-plugin
: Don't fold optional function calls (foo.?()
). (https://github.com/facebook/metro/pull/1178 by @Gamote)inline-plugin
: Don't replace __DEV__
in invalid Babel AST locations. (https://github.com/facebook/metro/pull/1195 by @kitten)metro-minify-terser
dependency to fix resolution under isolated node_modules (pnpm, etc). (https://github.com/facebook/metro/pull/1199 by @robhogan)NOTE: Experimental features are not covered by semver and can change at any time.
unstable_enablePackageExports
and unstable_enableSymlinks
. (https://github.com/facebook/metro/pull/1198 by @robhogan)Full Changelog: https://github.com/facebook/metro/compare/v0.80.4...v0.80.5
Published by motiz88 9 months ago
.zip/
(https://github.com/facebook/metro/commit/9212156011ebdb680f12ad7fa6597a0935b8b84a by @robhogan)Full Changelog: https://github.com/facebook/metro/compare/v0.80.3...v0.80.4
Published by huntie 10 months ago
dev
option to resolver (https://github.com/facebook/metro/pull/1134 by @EvanBacon)Published by huntie 10 months ago
serverRoot
with HMR serializer chunks (https://github.com/facebook/metro/pull/1137 by @EvanBacon)NOTE: Experimental features are not covered by semver and can change at any time.
"exports"
field is now considered for Haste packages (which could include local monorepo packages) (https://github.com/facebook/metro/pull/1136 by @kraenhansen)Published by motiz88 12 months ago
windows
/ macos
. (https://github.com/facebook/metro/pull/763 by @acoates-ms)NOTE: Experimental features are not covered by semver and can change at any time.
unstable_workerThreads
options to transformer
and watcher
configuration. (https://github.com/facebook/metro/commit/20df4ecd6456f994511290375d1fa6f13b902267 by @robhogan)Published by robhogan 12 months ago
metro-runtime/src/modules/fast-refresh
and react-refresh
dependency - now owned by RN's Babel preset. (https://github.com/facebook/metro/commit/855796816a941ca14e025df3f5a80fcd63bfbc21 by @robhogan)metro-babel-register
: Switch to Hermes parser, only apply Flow transforms to .js
. (https://github.com/facebook/metro/commit/ca0f89c26d27604e0dfdab857823a99378db7b48 by @pieterv)metro-babel-register
: Support export-namespace-from and Flow enums. (https://github.com/facebook/metro/commit/ca0f89c26d27604e0dfdab857823a99378db7b48 by @pieterv)NB: metro-react-native-interop-tools
has been removed and will receive no further updates. (https://github.com/facebook/metro/commit/c084066d35492dd39227e03442d6c3a4e0299dd9 by @GijsWeterings)
Full Changelog: https://github.com/facebook/metro/compare/v0.79.1...v0.80.0
Published by robhogan about 1 year ago
metro-babel-register
: prevent arbitrary transformation of Babel plugins during registration. (https://github.com/facebook/metro/commit/e8f468d5e4f1b88f1b99c66656cec004d4079831 by @robhogan)Full Changelog: https://github.com/facebook/metro/compare/v0.79.0...v0.79.1
Published by arushikesarwani94 about 1 year ago
resolver.enableGlobalPackages
) by default (https://github.com/facebook/metro/commit/0df1541e9890bc758ba0c328bfece180e9bc515b by @robhogan)unstable_enableSymlinks
) (https://github.com/facebook/metro/commit/9e7cec1b80ba4e843f3260437be04c3896299916 by @robhogan)customTransformOptions
and customResolverOptions
to bundle_build_started log event
so as to refine the bundling message (https://github.com/facebook/metro/pull/1061 by @EvanBacon)Published by huntie about 1 year ago
metro-cache
's Cache.set
to allow handling underlying async store errors (https://github.com/facebook/metro/commit/284516057349dff91d7e97b1f6b004068d428bfa by @robhogan)InspectorProxy.createWebSocketListeners
(https://github.com/facebook/metro/commit/8522db1c4221d4b582acc0e89c4278fa75885642 by @huntie)[!NOTE]
v0.78.1 will be the final release ofmetro-inspector-proxy
, which is being relocated into the React Native repo. In Metro v0.78.0, we removed builtin Inspector Proxy creation as a breaking change.
- For React Native integrators: The
@react-native/dev-middleware
package will provide a batteries-included integration point replacingmetro-inspector-proxy
. We're working closely with Expo on the API for this which should be ready within the next two weeks — usage will be documented in the package README.- Please reach out to @huntie (https://twitter.com/alxhnt) if you need support around this change.
Published by motiz88 about 1 year ago
metro-react-native-babel-transformer
and metro-react-native-babel-preset
, which will be published as @react-native/metro-babel-transformer
and @react-native/babel-preset
going forward. (https://github.com/facebook/metro/commit/799aa0a546e39546e2d0463f3fb1a963dc102bdf by @dmytrorykun)runInspectorProxy
option from server. (https://github.com/facebook/metro/commit/2b0b15d733c47768304569c800b3aceca3ef5b1f by @huntie)
InspectorProxy
instance externally, and provide the relevant handlers to Metro.runServer()
. For reference:
inspectorProxy.processRequest
to ServerOptions.unstable_extraMiddleware
.inspectorProxy.createWebSocketListeners
to ServerOptions.websocketEndpoints
.@react-native/dev-middleware
package, which will provide a batteries-included integration point for the above.DependencyGraph.resolveDependency
now takes a dependency object instead of a string. (https://github.com/facebook/metro/commit/fbdd295c5820152487f3331852ce91824808ce81 by @motiz88)inlineRequires
and nonInlinedRequires
to Babel transformers. (https://github.com/facebook/metro/commit/e339c8fae4c2e925aedbd3755e18a4a780bd0fb7 by @motiz88)metro.config.cjs
. (https://github.com/facebook/metro/commit/692293339e3b9f542f7b83c04bdccf46fef05766 by @huntie)asserted-states
is not iterable when using older Watchman versions. (https://github.com/facebook/metro/commit/3ef5fc83b911bac8e972c9dd8d2f63212eb6952c by @robhogan).native
as a standalone file extension. (https://github.com/facebook/metro/pull/1045 by @EvanBacon)Published by arushikesarwani94 over 1 year ago
metro-minify-uglify
from metro
dependencies. (https://github.com/facebook/metro/commit/7a8fcd5ecf5ccbe760c22be7fa924f9cb7c2fe1e by @robhogan)blockList
on Windows. (https://github.com/facebook/metro/commit/2eecfc767095f32bbea35a62c2dc85dcc9c4f839 by @motiz88)blockList
patterns with inconsistent regex flags. (https://github.com/facebook/metro/commit/c80904b64b8fa5d152da176ce668b77fa3e0ba25 by @motiz88)metro
versions are installed. (https://github.com/facebook/metro/commit/6d46078e74ae9a43aa90bed46dbd6610e2696cd0 by @robhogan)NOTE: Experimental features are not covered by semver and can change at any time.
metro-file-map
: Normalize root-relative paths for cross-platform cache compatibility. (https://github.com/facebook/metro/commit/d282a0818b840f1d5b0a2086051ec2c7febf1986 by @motiz88)require.context
is used on a directory with infinite path expansions. (https://github.com/facebook/metro/commit/14d652f411fd055c950f820d2de3087e2a791acd by @robhogan)Full Changelog: https://github.com/facebook/metro/compare/v0.76.7...v0.77.0
Published by jacdebug over 1 year ago
metro-babel-transformer
and metro-react-native-babel-transformer
will return metadata
from Babel transform results. (42fdbc2b20c29ca4cfad404a4c222c65077c6f5e by @robhogan)TerminalReporter
for Reporter implementations. (417e6f276ff9422af6039fc4d1bce41fcf7d9f46 by @colinta)Full Changelog: https://github.com/facebook/metro/compare/v0.76.6...v0.76.7
Published by robhogan over 1 year ago
Server
types to use broader types from connect
package (https://github.com/facebook/metro/commit/d20d7c80217ba2319379472fec0e345f58c569c6 by @huntie)createConnectMiddleware
export (https://github.com/facebook/metro/commit/06682f8775bb4447583fa1944126b3701da540bc by @huntie)server.enhanceMiddleware
option (https://github.com/facebook/metro/commit/22e85fde85ec454792a1b70eba4253747a2587a9 by @huntie)NOTE: Experimental features are not covered by semver and can change at any time.
unstable_extraMiddleware
option to runServer
API (https://github.com/facebook/metro/commit/d0d554381f119bb80ab09dbd6a1d310b54737e52 by @huntie)Full Changelog: https://github.com/facebook/metro/compare/v0.76.5...v0.76.6
Published by robhogan over 1 year ago
This is a hotfix on the 0.73.x
branch.
//&
instead of ?
as a query string delimiter (https://github.com/facebook/metro/pull/994 by @robhogan)Full Changelog: https://github.com/facebook/metro/compare/v0.73.9...v0.73.10
Published by robhogan over 1 year ago
This is a hotfix on the 0.72.x
branch.
//&
instead of ?
as a query string delimiter (https://github.com/facebook/metro/pull/993 by @robhogan)Full Changelog: https://github.com/facebook/metro/compare/v0.72.3...v0.72.4
Published by robhogan over 1 year ago
This is a hotfix on the 0.70.x
branch.
//&
instead of ?
as a query string delimiter. (https://github.com/facebook/metro/pull/996 by @robhogan)Full Changelog: https://github.com/facebook/metro/compare/v0.70.3...v0.70.4
Published by huntie over 1 year ago
//&
instead of ?
as a query string delimiter (https://github.com/facebook/metro/commit/bd357c8206205f70051a7a85a645a9595c650002 by @robhogan)NOTE: Experimental features are not covered by semver and can change at any time.
babel/runtime
issue when using Package Exports (https://github.com/facebook/metro/commit/905d773454cdff9d7a25403f549b40ba54558792 by @huntie)Full Changelog: https://github.com/facebook/metro/compare/v0.76.4...v0.76.5
Published by motiz88 over 1 year ago
x_google_ignoreList
source map extension. (https://github.com/facebook/metro/pull/973, 82bd64a9720174a9e2a02fb73bbef292153e20f1 by @motiz88)Full Changelog: https://github.com/facebook/metro/compare/v0.76.3...v0.76.4
Published by arushikesarwani94 over 1 year ago
__loadBundleAsync
implementations in the default asyncRequire
function. See the lazy bundling RFC for more details. (https://github.com/facebook/metro/commit/ac3adced45a6ca32286dda9e9470eab6eb4218bf, https://github.com/facebook/metro/commit/f07ce5c455a76b63d47c5ccec9611fc8cd66cd0e by @motiz88)lazy
parameter in bundle requests. See the lazy bundling RFC for more details. (https://github.com/facebook/metro/commit/4ef14f9a2f6c0b566df86f9caebb5a98bb7ba52a by @motiz88)transformer.asyncRequireModulePath
config option is deprecated. Use __loadBundleAsync
instead.(https://github.com/facebook/metro/commit/c7b684f0ae90ec22f7cddf82858dcaa8aa4bc64a by @motiz88)NOTE: Experimental features are not covered by semver and can change at any time.
server.experimentalImportBundleSupport
config option. (https://github.com/facebook/metro/commit/4ef14f9a2f6c0b566df86f9caebb5a98bb7ba52a by @motiz88)Full Changelog: https://github.com/facebook/metro/compare/v0.76.2...v0.76.3
Published by jacdebug over 1 year ago
/symbolicate
endpoint to allow custom frame skipping logic on a stack level. (https://github.com/facebook/metro/commit/ce266ddafd5eb484168f973f84a203d8b162f842 by @GijsWeterings)metro-core
's Terminal
from metro
. (https://github.com/facebook/metro/commit/86e3f934d4818cf4332a6dc3bed914db46090dd5 by @robhogan)metro-config
's resolveConfig
from metro
. (https://github.com/facebook/metro/commit/cc1666415f8773f799ddda6f4f7f83b8dc6205dd by @robhogan)@types/babel__code-frame
. (https://github.com/facebook/metro/commit/41cdc034a92c9aed8dd3410bf1d322de8c8e3ebd by @robhogan)@types/ws
. (https://github.com/facebook/metro/commit/7deb525916e7076a57e48e95a63c20702365246a by @robhogan)ResolutionContext.getPackageForModule
. (https://github.com/facebook/metro/commit/2d0a01cd7e244d4dbabc1718aa5c2d43a98b2d48 by @huntie)NOTE: Experimental features are not covered by semver and can change at any time.
asyncRequire
for lazy bundles. (https://github.com/facebook/metro/commit/61a30b7fc2075cf53f87ae8ad7b7423d204ef670 by @motiz88)node_modules
path candidates. (https://github.com/facebook/metro/commit/29c77bff31e2475a086bc3f04073f485da8f9ff0 by @huntie)package.json
discovery against root package specifiers for Package Exports. (https://github.com/facebook/metro/commit/b99530302415d065a54cf2671bd0cc6c820819ed by @huntie, fixes https://github.com/facebook/metro/issues/965 reported by @shamilovtim)Full Changelog: https://github.com/facebook/metro/compare/v0.76.1...v0.76.2