UNPKG

@nx/angular-rsbuild

Version:

Rsbuild Plugin for building Angular.

21 lines 1.41 kB
import { FileReplacement } from '@nx/angular-rspack-compiler'; import { PluginAngularOptions, OutputPath, NormalizedPluginAngularOptions } from './plugin-options'; /** * Resolves file replacement paths to absolute paths based on the provided root directory. * * @param fileReplacements - Array of file replacements with relative paths. * @param root - The root directory to resolve the paths against. * @returns Array of file replacements resolved against the root. */ export declare function resolveFileReplacements(fileReplacements: FileReplacement[], root: string): FileReplacement[]; export declare function getHasServer(root: string, server: string | undefined, ssr: PluginAngularOptions['ssr']): boolean; export declare function validateSsr(ssr: PluginAngularOptions['ssr']): void; export declare function validateOptimization(optimization: PluginAngularOptions['optimization']): void; export declare const DEFAULT_PLUGIN_ANGULAR_OPTIONS: PluginAngularOptions; export declare function normalizeOptions(options?: Partial<PluginAngularOptions>): NormalizedPluginAngularOptions; /** * This is slightly different to the Rspack solution as Rsbuild will use only relative paths * from the base directory provided as the outputPath. */ export declare function normalizeOutputPath(root: string, outputPath: string | OutputPath | undefined): OutputPath; //# sourceMappingURL=normalize-options.d.ts.map