extension-develop
Version:
The develop step of Extension.js
17 lines (16 loc) • 1.71 kB
TypeScript
import { Compilation } from '@rspack/core';
import { DevOptions } from '../../../develop-lib/config-types';
export declare function shortInstanceId(instanceId?: string): string;
export declare function instanceOffsetFromId(instanceId?: string): number;
export declare function deriveDebugPortWithInstance(optionPort?: number | string, instanceId?: string): number;
export declare function validateProfilePath(browser: DevOptions['browser'], profilePath: string): void;
export declare function getDefaultProfilePath(compilationOrPath: Compilation | string | undefined, browser: DevOptions['browser']): string;
export declare function createProfileDirectory(browser: DevOptions['browser'], profilePath: string, createFn: (tempPath: string) => void): void;
export declare function isChromiumProfileLocked(baseProfilePath: string): boolean;
export declare function isFirefoxProfileLocked(baseProfilePath: string): boolean;
export declare function chooseEffectiveInstanceId(reuseRequested: boolean | undefined, _concurrent: boolean, lockPresent: boolean, instanceId?: string): string | undefined;
export declare function calculateDebugPort(portFromConfig?: number | string, devServerPort?: number, defaultPort?: number): number;
export declare function filterBrowserFlags(defaultFlags: string[], excludeFlags?: string[]): string[];
export declare function mergePreferences(basePrefs: Record<string, any>, userPrefs?: Record<string, any>, customPrefs?: Record<string, any>): Record<string, any>;
export declare function applyPreferences(profile: any, preferences: Record<string, any>): void;
export declare function findAvailablePortNear(startPort: number, maxAttempts?: number, host?: string): Promise<number>;