@nx/react
Version:
16 lines (15 loc) • 544 B
TypeScript
import type { Configuration } from 'webpack';
import type { NxWebpackExecutionContext, WithWebOptions } from '@nx/webpack';
export interface SvgrOptions {
svgo?: boolean;
titleProp?: boolean;
ref?: boolean;
}
export interface WithReactOptions extends WithWebOptions {
svgr?: boolean | SvgrOptions;
}
/**
* @param {WithReactOptions} pluginOptions
* @returns {NxWebpackPlugin}
*/
export declare function withReact(pluginOptions?: WithReactOptions): (config: Configuration, context: NxWebpackExecutionContext) => Configuration;