UNPKG

extension-develop

Version:
17 lines (16 loc) 693 B
import { Compiler } from '@rspack/core'; import { DevOptions } from '../../../develop-lib/config-types'; import { JsFramework } from '../../webpack-types'; export declare function isUsingBabel(projectPath: string): boolean; export declare function getBabelConfigFile(projectPath: string): string | undefined; export declare function babelConfig(projectPath: string, opts: { mode: DevOptions['mode']; typescript: boolean; }): { cacheDirectory: boolean; cacheCompression: boolean; babelrc: boolean; configFile: string | undefined; compact: boolean; }; export declare function maybeUseBabel(_compiler: Compiler, projectPath: string): Promise<JsFramework | undefined>;