Releases: facebook/metro
Releases Β· facebook/metro
v0.45.1
- [Feature]: Add Metro Visualizer: a bundle visualizer to see the modules that form your app.
- [Feature]:
inlineRequires
now also affectimport
statements (Note: This is still experimental and it's under theexperimentalImportSupport
config param). - [Improvement]: Native support for ES6 Module
import
/export
. This improves app performance by removing thebabelInteropRequire()
wrappers around import calls (Note: This is still experimental and it's under theexperimentalImportSupport
config param). - [Improvement]: Allow for passing an intermediate config directly to metro methods.
v0.45.0
- [Feature]: Upgrade to Babel to 7.0.0 from 7.0.0-beta.56 (Babel changelog).
- [Improvement]: Upgrade
babel-preset-fbjs
to 2.3.0. - [Fix]: End Metro server gracefully on some edge errors (more info).
v0.44.0
- [Breaking]: Rename the
transformModulePath
config paramater totransformer.babelTransformerPath
. - [Breaking]: Move
assetPlugins
param to the config object (not accepted as a URL param anymore). - [Feature]: Add
transformerPath
config param to allow fully customization of the transformer logic (to generate non-JS modules). - [Feature]: Added
metro-visualizer
package to get a visual representation of the build bundles. - [Fixed]: Pass
resetCache
option tojest-haste-map
.
v0.43.6
- [Feature]: Expose
module.id
inrequire
object. - [Feature]: Implement "require" cache clearing via
__c
.
v0.43.5
- [Feature]: Make generated bundles compatible with Node.js runtime (more info).
- [Feature]: Add
processModuleFilter
config param. which replacespostProcessModules
that was not supported anymore (more info). - [Improvement]: Upgrade to Babel to
7.0.0-beta.56
from7.0.0-beta.54
(Babel changelog). - [Fixed]: Respect the
inlineSourceMap
option to inline the sourcemap in the bundle (more info). - [Fixed]: Do not override the global
require
function by defining the require function asglobal.__r
(more info). (Note: This can cause a breaking change when overriding thegetRunModuleStatement
config param).
v0.43.4
- [Feature]: Expose
useWatchman
configuration parameter to disablewatchman
crawling. - [Improvement]:
Metro.runBuild()
does not require anout
param anymore (it won't save the output to disk if not provided). - [Fixed]: Fixed parsing of Windows paths on
metro-babel-register
. - [Fixed]: Now Metro does not require to have a config file (zero-config π ).
v0.43.3
- [Feature]: Add TypeScript support to React Native.
- [Improvement]: Add option to
metro-config
to override the default config. - [Fixed]: Avoid traversing some files on the graph multiple times.