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

9 lines (8 loc) 296 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.maybeJs = maybeJs; function maybeJs(options, path) { return options.js && (path.endsWith('.ts') || path.endsWith('.tsx')) ? path.replace(/\.tsx?$/, options.useJsx ? '.jsx' : '.js') : path; }