UNPKG

@expo/metro-config

Version:

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

10 lines (9 loc) 762 B
import { MixedOutput, Module, ReadOnlyGraph, SerializerOptions } from 'metro'; import { SerializerConfigT } from 'metro-config'; import { Dependency } from '../transform-worker/collect-dependencies'; type Serializer = NonNullable<SerializerConfigT['customSerializer']>; type SerializerParameters = Parameters<Serializer>; export declare function sortDependencies(dependencies: readonly Dependency[], accordingTo: Module['dependencies']): Map<string, Dependency>; export declare function isEnvBoolean(graph: ReadOnlyGraph, name: string): boolean; export declare function reconcileTransformSerializerPlugin(entryPoint: string, preModules: readonly Module<MixedOutput>[], graph: ReadOnlyGraph, options: SerializerOptions): Promise<SerializerParameters>; export {};