react-native-builder-bob
Version:
CLI to build JavaScript files for React Native libraries
16 lines (15 loc) • 721 B
text/typescript
/**
* Get Babel configuration for the example project.
* This sets up appropriate presets and plugins for the library.
* It also aliases the library to the source directory.
*
* @param {import('@babel/core').TransformOptions} defaultConfig Default Babel configuration
* @param {object} options Options to customize the configuration
* @param {string} options.root Root directory of the monorepo
* @param {object} options.pkg Content of package.json of the library
* @returns {import('@babel/core').TransformOptions} Babel configuration
*/
export function getConfig(defaultConfig: import("@babel/core").TransformOptions, { root }: {
root: string;
pkg: object;
}): import("@babel/core").TransformOptions;