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

20 lines (19 loc) 803 B
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 { /** * @deprecated Add SVGR support in your Webpack configuration without relying on Nx. See https://react-svgr.com/docs/webpack/ * TODO(v22): Remove this option and migrate userland webpack config to explicitly configure @svgr/webpack * */ svgr?: boolean | SvgrOptions; } /** * @param {WithReactOptions} pluginOptions * @returns {NxWebpackPlugin} */ export declare function withReact(pluginOptions?: WithReactOptions): (config: Configuration, context: NxWebpackExecutionContext) => Configuration;