Skip to content

Commit 78f4896

Browse files
committed
refactor(@angular-devkit/build-angular): use application builder for unknown builders in Vite dev server
The application builder logic will now be used when the Vite-based development server is used with a custom builder. This aligns with the programmatic export of application builder. This allows consistent behavior for custom builders that use both the application builder and dev server builder APIs. (cherry picked from commit 43b09ce)
1 parent ec903cf commit 78f4896

File tree

1 file changed

+3
-3
lines changed
  • packages/angular_devkit/build_angular/src/builders/dev-server

1 file changed

+3
-3
lines changed

packages/angular_devkit/build_angular/src/builders/dev-server/vite-server.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ export async function* serveWithVite(
141141
});
142142

143143
const build =
144-
builderName === '@angular-devkit/build-angular:application'
145-
? buildApplicationInternal
146-
: buildEsbuildBrowser;
144+
builderName === '@angular-devkit/build-angular:browser-esbuild'
145+
? buildEsbuildBrowser
146+
: buildApplicationInternal;
147147

148148
// TODO: Switch this to an architect schedule call when infrastructure settings are supported
149149
for await (const result of build(

0 commit comments

Comments
 (0)