UNPKG

@nx/rspack

Version:

The Nx Plugin for Rspack contains executors and generators that support building applications using Rspack.

13 lines (12 loc) 630 B
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;