UNPKG

@expo/metro-config

Version:

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

16 lines (15 loc) 825 B
/** * Copyright 2023-present 650 Industries (Expo). All rights reserved. * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import type { TransformResultDependency } from '@expo/metro/metro/DeltaBundler'; import type { JsTransformerConfig, JsTransformOptions } from '@expo/metro/metro-transform-worker'; import type { ExpoJsOutput } from '../serializer/jsOutput'; export interface TransformResponse { readonly dependencies: readonly TransformResultDependency[]; readonly output: readonly ExpoJsOutput[]; } export declare function transform(config: JsTransformerConfig, projectRoot: string, filename: string, data: Buffer, options: JsTransformOptions): Promise<TransformResponse>;