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) 489 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addRemoteToDynamicHost = addRemoteToDynamicHost; function addRemoteToDynamicHost(tree, remoteName, remotePort, pathToMfManifest) { if (tree.exists(pathToMfManifest)) { const current = tree.read(pathToMfManifest, 'utf8'); tree.write(pathToMfManifest, JSON.stringify({ ...JSON.parse(current), [remoteName]: `http://localhost:${remotePort}`, })); } }