@expo/metro-config
Version:
A Metro config for running React Native projects with the Metro bundler
12 lines (11 loc) • 705 B
TypeScript
/**
* Copyright © 2022 650 Industries.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { ReadOnlyGraph, MixedOutput, Module, SerializerOptions } from 'metro';
import { SerializerParameters } from './withExpoSerializers';
export declare function replaceEnvironmentVariables(code: string, env: Record<string, string | undefined>): string;
export declare function getTransformEnvironment(url: string): string | null;
export declare function environmentVariableSerializerPlugin(entryPoint: string, preModules: readonly Module<MixedOutput>[], graph: ReadOnlyGraph, options: SerializerOptions): SerializerParameters;