UNPKG

@nx/web

Version:

The Nx Plugin for Web Components contains generators for managing Web Component applications and libraries within an Nx workspace. It provides: - Integration with libraries such as Jest, Playwright, Cypress, and Storybook. - Scaffolding for creating bu

11 lines (10 loc) 380 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.hasVitePlugin = hasVitePlugin; const devkit_1 = require("@nx/devkit"); function hasVitePlugin(tree) { const nxJson = (0, devkit_1.readNxJson)(tree); return !!nxJson.plugins?.some((p) => typeof p === 'string' ? p === '@nx/vite/plugin' : p.plugin === '@nx/vite/plugin'); }