Skip to content

Commit 43b09ce

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.
1 parent d8edbfb commit 43b09ce

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
@@ -142,9 +142,9 @@ export async function* serveWithVite(
142142
});
143143

144144
const build =
145-
builderName === '@angular-devkit/build-angular:application'
146-
? buildApplicationInternal
147-
: buildEsbuildBrowser;
145+
builderName === '@angular-devkit/build-angular:browser-esbuild'
146+
? buildEsbuildBrowser
147+
: buildApplicationInternal;
148148

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

0 commit comments

Comments
 (0)