Skip to content

Commit

Permalink
fix(vite-plugin-angular): fix HMR of component styles w/tsconfig flag (
Browse files Browse the repository at this point in the history
  • Loading branch information
mattlewis92 authored and brandonroberts committed Jan 7, 2025
1 parent cb3becb commit 6b9c75c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,7 @@ export function angular(options?: PluginOptions): Plugin[] {

if (pluginOptions.liveReload && watchMode) {
tsCompilerOptions['_enableHmr'] = true;
tsCompilerOptions['externalRuntimeStyles'] = true;
// Workaround for https://github.com/angular/angular/issues/59310
// Force extra instructions to be generated for HMR w/defer
tsCompilerOptions['supportTestBed'] = true;
Expand Down

0 comments on commit 6b9c75c

Please sign in to comment.