babel-preset-expo
Version:
The Babel preset for Expo projects
32 lines (31 loc) • 1.11 kB
TypeScript
import type { PluginOptions as ReactCompilerOptions } from 'babel-plugin-react-compiler';
export interface ExpoConfigOptions {
platform: string | null;
engine: string;
isDev: boolean;
isProduction: boolean;
isServerEnv: boolean;
isReactServer: boolean;
isNodeModule: boolean;
isFastRefreshEnabled: boolean;
isReactCompilerEnabled: boolean;
isModernEngine: boolean;
baseUrl: string;
bundler: 'metro' | 'webpack' | null;
inlineEnvironmentVariables?: boolean;
decorators: {
legacy?: boolean;
version?: number;
} | false | undefined;
reanimated: boolean | undefined;
worklets: boolean | undefined;
expoUi: boolean | undefined;
reactCompiler: ReactCompilerOptions | false | undefined;
enableReactFastRefresh: boolean | undefined;
minifyTypeofWindow: boolean | undefined;
transformImportMeta: boolean | undefined;
disableImportExportTransform: boolean | undefined;
disableDeepImportWarnings: boolean | undefined;
jsxRuntime: 'classic' | 'automatic' | undefined;
jsxImportSource: string | undefined;
}