@expo/metro-config
TypeScript icon, indicating that this package has built-in type declarations

0.18.7 • Public • Published

@expo/metro-config

This package contains the default Metro config that is required for bundling apps with Expo CLI. Refer to the Expo metro.config.js docs to learn more.

metro.config.js

// Learn more https://docs.expo.io/guides/customizing-metro
const { getDefaultConfig } = require('expo/metro-config');

/** @type {import('expo/metro-config').MetroConfig} */
const config = getDefaultConfig(__dirname);

module.exports = config;

Exotic

As of SDK 51, the exotic transformer has been fully removed in favor of the default @expo/metro-config transformer. The export @expo/metro-config/transformer no longer exists.

Most of the Exotic mode performance benefits have been integrated in the default Expo CLI bundling pipeline (e.g. less AST cloning, faster worker creation), and as such, the feature no longer needs to be enabled/disabled. Setting mode: "exotic" will no longer have any additional effects over the default.

Ensure you extend the @expo/metro-config/babel-transformer when customizing babel. Learn more: Extending the Babel transformer.

Readme

Keywords

Package Sidebar

Install

npm i @expo/metro-config

Weekly Downloads

708,309

Version

0.18.7

License

MIT

Unpacked Size

270 kB

Total Files

112

Last publish

Collaborators

  • szdziedzic
  • alanhughes
  • kadikraman
  • radoslawkrzemien
  • aleqsio
  • marklawlor
  • gabrieldonadel
  • simek
  • keith-kurak
  • christopherwalter
  • kbrandwijk
  • fiber-god
  • ide
  • brentvatne
  • evanbacon
  • quinlanj
  • expoadmin
  • tsapeta
  • exponent
  • wschurman
  • wkozyra
  • bycedric
  • lukmccall
  • jonsamp
  • princefleaswallow
  • kudochien