Releases: facebook/metro
Releases Β· facebook/metro
v0.45.6
v0.45.5
- [Fix]: Add
@babel/plugin-external-helpers
as a metro dependency.
v0.45.4
- [Feature]: Add support for
babel.config.js
config files in the React Native transformer (#251). - [Improvement]: Return a meaningful message when a bundle doesn't exist.
- [Fix]: Fix haste module resolution inside of scoped modules (#241).
- [Fix]: Do not include the sourcecode of assets in the sourcemaps.
- [Fix]: Ignore babel config files when transforming
import
/export
statements. - [Fix]: Do not generate non-ES5 code when transforming
import
/export
statements. - [Fix]: Small issues around the new
experimentalImportSupport
config flag (more info).
v0.45.3
- [Improvement]: Preview source code or source image of a module, as well as the output code from the metro visualizer.
- [Fix]: Make Metro visualizer dependency optional.
v0.45.2
- [Feature]: Make Metro bundles compatible with ES6 Module runtimes.
- [Improvement]: Add
optimizationSizeLimit
config param to not do expensive optimizations on large files. - [Fix]: Strip
const
keywords from the bundle runtime to make it compatible with older JS engines.
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).