UNPKG

@dr.pogodin/react-utils

Version:

Collection of generic ReactJS components and utils

19 lines (18 loc) 813 B
import type { TransformOptions } from '@babel/core'; import { type BabelCompilerI, type OptionsT as WebpackConfigOptionsT } from './webpack'; type OptionsT = WebpackConfigOptionsT & { baseAssetsOutputPath?: string; }; /** * Generates Babel config for NodeJS compilation and server-side execution. * @param babel Babel compiler instance. * @param [ops] Preset options. It supports all options accepted by * the underlying {@link module:babel/webpack preset for Webpack}, but it * overrides `targets` option by `current node` value, and also accepts * the following additional options: * @param [ops.baseAssetsOutputPath] Path prefix for emitted image * assets. * @return Generated config. */ export default function getConfig(babel: BabelCompilerI, ops?: OptionsT): TransformOptions; export {};