UNPKG

one

Version:

One is a React framework for web, iOS, and Android apps.

21 lines • 993 B
export type BuildOneMetroResolverOverridesOptions = { projectRoot: string; }; export type MetroConfigLike = { resolver?: Record<string, any>; } | undefined; /** * Build the Metro resolver overrides One needs for native bundles. * * Used by getViteMetroPluginOptions, which feeds these into the same * getMetroConfigFromViteConfig pipeline both production native bundles and * standalone Metro invocations go through. The * overrides handle One-specific concerns: server-only stripping, .css → empty, * _middleware → empty, native singleton ownership, and react-native-svg's * compiled entry point. * * Returns a function that takes Metro's default config and produces an * overridden config. Callers compose any additional overrides on top. */ export declare function buildOneMetroResolverOverrides({ projectRoot, }: BuildOneMetroResolverOverridesOptions): <T extends MetroConfigLike>(defaultConfig: T) => T; //# sourceMappingURL=buildOneMetroResolverOverrides.d.ts.map