@nx/rspack
Version:
13 lines (12 loc) • 630 B
TypeScript
import type { Configuration } from '@rspack/core';
import { NxRspackExecutionContext } from './config';
import { WithWebOptions } from './with-web';
export interface WithReactOptions extends WithWebOptions {
}
/**
* @deprecated Will be removed in Nx v24. Use `NxReactRspackPlugin` from
* `@nx/rspack/react-plugin` in a standard rspack config and run
* `nx g @nx/rspack:convert-to-inferred`. See
* https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
*/
export declare function withReact(opts?: WithReactOptions): (config: Configuration, { options, context }: NxRspackExecutionContext) => Configuration;