Skip to content

Unitools | Metro Config | Expo | By GeekyAnts

Features

  • Support for .expo-web.{js|ts|jsx|tsx} file extension.

Installation

To install @unitools/metro-config, use either of the following commands:

Terminal window
npm i @unitools/metro-config

Usage

Add following to your metro.config.js file.

const { getDefaultConfig } = require("expo/metro-config");
const { withUnitools } = require("@unitools/metro-config");
const projectRoot = __dirname;
const config = getDefaultConfig(projectRoot);
module.exports = withUnitools(config);