UNPKG

@nx/react

Version:

The React plugin for Nx contains executors and generators for managing React applications and libraries within an Nx workspace. It provides: - Integration with libraries such as Jest, Vitest, Playwright, Cypress, and Storybook. - Generators for applica

14 lines (13 loc) 679 B
import type { Configuration } from 'webpack'; import type { NxWebpackExecutionContext, WithWebOptions } from '@nx/webpack'; export interface WithReactOptions extends WithWebOptions { } /** * @deprecated Will be removed in Nx v24. Use `NxReactWebpackPlugin` from * `@nx/react/webpack-plugin` in a standard webpack config and run * `nx g @nx/webpack:convert-to-inferred`. See * https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details. * @param {WithReactOptions} pluginOptions * @returns {NxWebpackPlugin} */ export declare function withReact(pluginOptions?: WithReactOptions): (config: Configuration, context: NxWebpackExecutionContext) => Configuration;