UNPKG

@nx/next

Version:

The Next.js plugin for Nx contains executors and generators for managing Next.js applications and libraries within an Nx workspace. It provides: - Scaffolding for creating, building, serving, linting, and testing Next.js applications. - Integration wit

15 lines 727 B
import { Tree } from '@nx/devkit'; /** * Updates a Vite config to support multiple entry points for Next.js libraries. * Transforms: * 1. entry: 'src/index.ts' -> entry: { index: 'src/index.ts', server: 'src/server.ts' } * 2. fileName: 'index' -> fileName: (format, entryName) => `${entryName}.js` * * Note: We know the shape of the vite config that is being generated, therefore string manipulation is fine * * @param tree - The file system tree * @param viteConfigPath - Path to the vite.config.ts file * @returns true if the config was updated, false otherwise */ export declare function updateViteConfigForServerEntry(tree: Tree, viteConfigPath: string): boolean; //# sourceMappingURL=update-vite-config.d.ts.map