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

11 lines (10 loc) 467 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.showPossibleWarnings = showPossibleWarnings; const pc = require("picocolors"); const devkit_1 = require("@nx/devkit"); function showPossibleWarnings(tree, options) { if (options.style === 'styled-jsx' && options.compiler === 'swc') { devkit_1.logger.warn(`styled-jsx may not work with SWC. Try using ${pc.bold('nx g @nx/react:app --compiler=babel')} instead.`); } }