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

13 lines (12 loc) 606 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.hasRsbuildPlugin = hasRsbuildPlugin; const devkit_1 = require("@nx/devkit"); const versions_1 = require("./versions"); async function hasRsbuildPlugin(tree, projectPath) { (0, devkit_1.ensurePackage)('@nx/rsbuild', versions_1.nxVersion); // `require()` honors Module._initPaths (which ensurePackage updates); ESM // dynamic `import()` doesn't, so it can't see the on-demand temp install. const { hasRsbuildPlugin, } = require('@nx/rsbuild/config-utils'); return hasRsbuildPlugin(tree, projectPath); }