UNPKG

@expo/metro-config

Version:

A Metro config for running React Native projects with the Metro bundler

24 lines (23 loc) 814 B
import type { TransformOptions } from './babel-core'; export type ExpoBabelCaller = TransformOptions['caller'] & { babelRuntimeVersion?: string; metroSourceType?: 'script' | 'module' | 'asset'; supportsReactCompiler?: boolean; isReactServer?: boolean; isHMREnabled?: boolean; isServer?: boolean; isNodeModule?: boolean; preserveEnvVars?: boolean; isDev?: boolean; asyncRoutes?: boolean; baseUrl?: string; engine?: string; bundler?: 'metro' | (string & object); platform?: string | null; routerRoot?: string; projectRoot: string; /** When true, indicates this bundle should contain only the loader export */ isLoaderBundle?: boolean; /** When true, indicates this file is part of a DOM component bundle */ isDomComponent?: boolean; };