github react/metro v0.87.3

4 hours ago
  • [Fix]: Resolver: Resolve conditional and nested array fallbacks in "exports" and "imports" (#2089 by @maximilliangrand)
  • [Fix]: Apply serializer.processModuleFilter to inline source maps (#2124 by @kwy404)
  • [Fix]: metro-file-map: Keep files under other watch roots when the project root is recrawled (#2123 by @YevheniiKotyrlo)
  • [Fix]: Treat zero-filled FileStore cache files as misses (#2122 by @maximilliangrand)
  • [Fix]: Terminal: Don't erase output printed outside of Terminal (#2130 by @vzaidman)
  • [Fix]: Terminal: Keep Terminal.log() in order with other output (#2162 by @vzaidman)
  • [Performance]: ~4-7% faster cold builds, with ~6-8% less CPU, by skipping input AST cloning in the transform worker (#2033, #2132 by @vzaidman)
  • [Performance]: ~2% less CPU on cold minified builds, with faster source map handling when minifying (#1984 by @robhogan)
  • [Deprecated]: MinifierResult.map - custom minifiers should return decodedMap (#1984 by @robhogan)
  • [Deprecated]: metro-source-map: toBabelSegments, toSegmentTuple and tuplesFromBabelDecodedMap (#1984 by @robhogan)

NOTE: Experimental features are not covered by semver and can change at any time.

  • [Experimental]: Add resolver.unstable_allowVirtualModules, allowing custom resolvers to return virtual modules (#2056, #2036 by @robhogan)
  • [Experimental]: Add metro:inline;base64,<source> specifiers, resolving to a virtual module owned by the importer (#2037 by @robhogan)
  • [Experimental]: Add resolver.unstable_applyBrowserSpecAfterExports to apply "browser" redirections after "exports" (#2134 by @mozzius)
  • [Experimental]: Add resolver.unstable_resolveExportsFromPackageRoot to read "exports" from the package root (#2160 by @robhogan)
  • [Experimental]: Fix transformer.unstable_workerThreads exposing JEST_WORKER_ID to transformers (#2152 by @robhogan)

Full Changelog: v0.87.2...v0.87.3

Don't miss a new metro release

NewReleases is sending notifications on new releases.