Skip to content

Commit

Permalink
fix(vite-plugin-angular): disable transform of component styles on build
Browse files Browse the repository at this point in the history
  • Loading branch information
mattlewis92 committed Jan 6, 2025
1 parent 5b3dbfe commit 9ca000a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ export function angular(options?: PluginOptions): Plugin[] {
tsCompilerOptions.compilationMode = 'experimental-local';
}

if (pluginOptions.liveReload) {
if (pluginOptions.liveReload && watchMode) {
tsCompilerOptions['_enableHmr'] = true;
tsCompilerOptions['externalRuntimeStyles'] = true;
// Workaround for https://github.com/angular/angular/issues/59310
Expand Down

0 comments on commit 9ca000a

Please sign in to comment.