Skip to content

Commit e3a1f27

Browse files
fix(vite-plugin-angular): trigger compilation from external templates/styles (#1779)
1 parent 8570243 commit e3a1f27

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/vite-plugin-angular/src/lib/angular-vite-plugin.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,10 @@ export function angular(options?: PluginOptions): Plugin[] {
350350
});
351351
});
352352

353-
await performCompilation(resolvedConfig, updates);
353+
await performCompilation(resolvedConfig, [
354+
...mods.map((mod) => mod.id as string),
355+
...updates,
356+
]);
354357

355358
if (updates.length > 0) {
356359
updates.forEach((updateId) => {

0 commit comments

Comments
 (0)