From f017fee2e93a4207b7bfd69c838991546b398753 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Thu, 15 Jun 2023 14:22:09 -0400 Subject: [PATCH] fix(@angular-devkit/build-angular): actually disable Vite prebundling file discovery The `entries` option should be used instead of the `includes` option to disable the file entry based discovery for Vite's prebundling. This discovery is unneeded due to the built application files existing only in memory. (cherry picked from commit 480bd4e30e871bcaf7aca2693c30ed1c1ea34062) --- .../build_angular/src/builders/dev-server/vite-server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular_devkit/build_angular/src/builders/dev-server/vite-server.ts b/packages/angular_devkit/build_angular/src/builders/dev-server/vite-server.ts index 3e9ee01ea4d0..275426869a41 100644 --- a/packages/angular_devkit/build_angular/src/builders/dev-server/vite-server.ts +++ b/packages/angular_devkit/build_angular/src/builders/dev-server/vite-server.ts @@ -368,7 +368,7 @@ export async function setupServer( // Exclude any provided dependencies (currently build defined externals) exclude: prebundleExclude, // Skip automatic file-based entry point discovery - include: [], + entries: [], // Add an esbuild plugin to run the Angular linker on dependencies esbuildOptions: { plugins: [