metro

🚇 The JavaScript bundler for React Native

MIT License

Downloads
188.1M
Stars
5.1K
Committers
434

Bot releases are visible (Hide)

metro - v0.49.1

Published by rafeca almost 6 years ago

  • [Feature]: Add custom serializer (#309).
  • [Feature]: entryFile is no longer assumed to end with .js extension (#310).
  • [Feature]: Add support for publicPath to enable serving assets from different locations (#299).
  • [Feature]: Make dynamic import interoperable for CJS and ESM (more info).
  • [Fix]: Fix source map loading in the remote debugger (more info).
  • [Fix]: Fix metro visualizer transformation (more info).

(list of commits since v0.49.0)

metro - v0.49.0

Published by rafeca almost 6 years ago

  • [Feature]: Add Source map support for HMR updates (more info).
  • [Feature]: Add a ServiceWorker implementation to get development updates via delta bundles in web (more info).

(list of commits since v0.48.3)

metro - v0.48.3

Published by rafeca almost 6 years ago

  • [Fix]: Do not add "use strict;" to non ES6 modules (more info).

(list of commits since v0.48.2)

metro - v0.48.2

Published by rafeca almost 6 years ago

  • [Breaking]: Upgrade jest-haste-map to v24.0.0-alpha.2. Metro no longer makes modules with @providesModule annotations global by default (more info).
  • [Feature]: Add a config param to disable sticky workers (more info).
  • [Feature]: Add support for storing/retrieving binary data in the caching system (more info).
  • [Improvement]: Transform _dependencyMap[n] into the corresponding integer to reduce bundle size on RAM bundles (more info).
  • [Improvement]: Refactored HMR handling logic to be more robust.
  • [Fix]: Do not recompute the transform cache key every time Metro transfofrms a file (more info).
  • [Fix]: Issue when using maxWorkers=1 and creating different instances of Metro in the same process.

(list of commits since v0.48.1)

metro - v0.48.1

Published by rafeca almost 6 years ago

  • [Improvement]: Enable babel-runtime by default in react-native-babel-preset (#285).
  • [Improvement]: Adds prettier to the build step to make output more readable. (#279).
  • [Fix]: Prevent throwing an exception during evaluation in constantFoldingPlugin (#281).

(list of commits since v0.48.0)

metro - v0.48.0

Published by rafeca about 6 years ago

  • [Breaking]: Tweak the minifiers API to make the options configurable. Now the minify() method accepts an object instead of several params (more info).
  • [Feature]: Add minifierConfig config param to enable passing custom options to the minifier (more info).
  • [Feature]: Add enableBabelRuntime config param to select whether the @babel/runtime plugin is enabled.
  • [Fix]: TypeScript constructor parameter properties (#258).
  • [Fix]: React Native transformer now instantiates the HMR plugin correctly (more info).
  • [Fix]: Build progress bar now behaves correctly when building multiple entry points (more info).

(list of commits since v0.47.1)

metro - v0.47.1

Published by rafeca about 6 years ago

  • [Improvement]: Ignore babel.config.js files in addition to .babelrc (#276).
  • [Improvement]: Change injection of global object to use global before window.
  • [Fix]: Generation of inline sourcemaps is now correct.
  • [Fix]: enableBabelRCLookup config param is now correctly taken into account.

(list of commits since v0.47.0)

metro - v0.47.0

Published by rafeca about 6 years ago

  • [Breaking]: Remove the absolute path of files as an argument of babelTransformerPath (more info).
  • [Breaking]: Changed the interface of the transformerPath module (more info).
  • [Improvement]: Add module.id param to production bundles (more info).
  • [Fix]: Handle the case where transformSync returns null in the React Native transformer (#264).
  • [Fix]: Resolve transformerPath before attempting to read its contents (#268).

(list of commits since v0.46.0)

metro - v0.46.0

Published by rafeca about 6 years ago

  • [Breaking]: Use babel runtime instead of relying on global babelHelpers on the React Native transformer (#198).
  • [Feature]: Add metro-minify-terser as an alternative minifier (#256).
  • [Fix]: Transform .tsx files correctly (#263).

(list of commits since v0.45.6)

metro - v0.45.6

Published by rafeca about 6 years ago

  • [Improvement]: Ensure that jsonvalue exists in resolver.sourceExts (#250).
  • [Fix]: Add "use strict" when transforming JS modules.
  • [Fix]: Create inline source maps only when no URL is specified (#260).
  • [Fix]: Add missing dependencies to the Metro package.

(list of commits since v0.45.5)

metro - v0.45.5

Published by rafeca about 6 years ago

  • [Fix]: Add @babel/plugin-external-helpers as a metro dependency.

(list of commits since v0.45.4)

metro - v0.45.4

Published by rafeca about 6 years ago

  • [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).

(list of commits since v0.45.3)

metro - v0.45.3

Published by rafeca about 6 years ago

  • [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.

(list of commits since v0.45.2)

metro - v0.45.2

Published by rafeca about 6 years ago

  • [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.

(list of commits since v0.45.1)

metro - v0.45.1

Published by rafeca about 6 years ago

  • [Feature]: Add Metro Visualizer: a bundle visualizer to see the modules that form your app.
  • [Feature]: inlineRequires now also affect import statements (Note: This is still experimental and it's under the experimentalImportSupport config param).
  • [Improvement]: Native support for ES6 Module 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).
  • [Improvement]: Allow for passing an intermediate config directly to metro methods.

(list of commits since v0.45.0)

metro - v0.45.0

Published by rafeca about 6 years ago

  • [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).

(list of commits since v0.44.0)

metro - v0.44.0

Published by rafeca about 6 years ago

  • [Breaking]: Rename the transformModulePath config paramater to transformer.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 to jest-haste-map.

(list of commits since v0.43.6)

metro - v0.43.6

Published by rafeca about 6 years ago

  • [Feature]: Expose module.id in require object.
  • [Feature]: Implement "require" cache clearing via __c.

(list of commits since v0.43.5)

metro - v0.43.5

Published by rafeca about 6 years ago

  • [Feature]: Make generated bundles compatible with Node.js runtime (more info).
  • [Feature]: Add processModuleFilter config param. which replaces postProcessModules that was not supported anymore (more info).
  • [Improvement]: Upgrade to Babel to 7.0.0-beta.56 from 7.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 as global.__r (more info). (Note: This can cause a breaking change when overriding the getRunModuleStatement config param).

(list of commits since v0.43.4)

metro - v0.43.4

Published by rafeca about 6 years ago

  • [Feature]: Expose useWatchman configuration parameter to disable watchman crawling.
  • [Improvement]: Metro.runBuild() does not require an out 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 😅).

(list of commits since v0.43.3)

Package Rankings
Top 0.62% on Npmjs.org
Top 18.4% on Repo1.maven.org
Badges
Extracted from project README
MIT licensed npm package version Build status Code coverage Follow @MetroBundler on Twitter
Related Projects