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 Jan 6, 2025
1 parent e6e8198 commit ee67cc6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,7 @@ export function angular(options?: PluginOptions): Plugin[] {

if (pluginOptions.liveReload) {
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 ee67cc6

Please sign in to comment.