🚇 The JavaScript bundler for React Native
MIT License
Bot releases are visible (Hide)
Published by rafeca almost 6 years ago
entryFile
is no longer assumed to end with .js
extension (#310).publicPath
to enable serving assets from different locations (#299).Published by rafeca almost 6 years ago
jest-haste-map
to v24.0.0-alpha.2
. Metro no longer makes modules with @providesModule
annotations global by default (more info)._dependencyMap[n]
into the corresponding integer to reduce bundle size on RAM bundles (more info).maxWorkers=1
and creating different instances of Metro in the same process.Published by rafeca almost 6 years ago
constantFoldingPlugin
(#281).Published by rafeca about 6 years ago
minify()
method accepts an object instead of several params (more info).minifierConfig
config param to enable passing custom options to the minifier (more info).enableBabelRuntime
config param to select whether the @babel/runtime
plugin is enabled.Published by rafeca about 6 years ago
babel.config.js
files in addition to .babelrc
(#276).global
before window
.enableBabelRCLookup
config param is now correctly taken into account.Published by rafeca about 6 years ago
babelTransformerPath
(more info).transformerPath
module (more info).module.id
param to production bundles (more info).transformerPath
before attempting to read its contents (#268).Published by rafeca about 6 years ago
metro-minify-terser
as an alternative minifier (#256)..tsx
files correctly (#263).Published by rafeca about 6 years ago
json
value exists in resolver.sourceExts
(#250)."use strict"
when transforming JS modules.Published by rafeca about 6 years ago
@babel/plugin-external-helpers
as a metro dependency.Published by rafeca about 6 years ago
babel.config.js
config files in the React Native transformer (#251).import
/export
statements.import
/export
statements.experimentalImportSupport
config flag (more info).Published by rafeca about 6 years ago
Published by rafeca about 6 years ago
optimizationSizeLimit
config param to not do expensive optimizations on large files.const
keywords from the bundle runtime to make it compatible with older JS engines.Published by rafeca about 6 years ago
inlineRequires
now also affect import
statements (Note: This is still experimental and it's under the experimentalImportSupport
config param).import
/export
. This improves app performance by removing the babelInteropRequire()
wrappers around import calls (Note: This is still experimental and it's under the experimentalImportSupport
config param).Published by rafeca about 6 years ago
babel-preset-fbjs
to 2.3.0.Published by rafeca about 6 years ago
transformModulePath
config paramater to transformer.babelTransformerPath
.assetPlugins
param to the config object (not accepted as a URL param anymore).transformerPath
config param to allow fully customization of the transformer logic (to generate non-JS modules).metro-visualizer
package to get a visual representation of the build bundles.resetCache
option to jest-haste-map
.Published by rafeca about 6 years ago
module.id
in require
object.__c
.Published by rafeca about 6 years ago
processModuleFilter
config param. which replaces postProcessModules
that was not supported anymore (more info).7.0.0-beta.56
from 7.0.0-beta.54
(Babel changelog).inlineSourceMap
option to inline the sourcemap in the bundle (more info).require
function by defining the require function as global.__r
(more info). (Note: This can cause a breaking change when overriding the getRunModuleStatement
config param).Published by rafeca about 6 years ago
useWatchman
configuration parameter to disable watchman
crawling.Metro.runBuild()
does not require an out
param anymore (it won't save the output to disk if not provided).metro-babel-register
.