Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import type * as ng from '@angular/compiler-cli';
import assert from 'node:assert';
import { relative } from 'node:path';
import { normalize, relative } from 'node:path';
import ts from 'typescript';
import { useTypeChecking } from '../../../utils/environment-options';
import { profileAsync, profileSync } from '../../../utils/profiling';
Expand Down Expand Up @@ -331,7 +331,8 @@ export class AotCompilation extends TypeScriptCompilation {
if (this.#state && hostOptions.modifiedFiles?.size) {
for (const resourceDependency of resourceDependencies) {
if (
!hostOptions.modifiedFiles.has(resourceDependency) ||
// modifiedFiles holds normalized paths, so the separators differ on Windows

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment here is not true. modifiedFiles can be posix paths on Windows.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, removed it. Since set can hold both forms it now checks resource path as is and normalized

!hostOptions.modifiedFiles.has(normalize(resourceDependency)) ||
/\.(?:css|scss|sass|less)$/i.test(resourceDependency)
) {
continue;
Expand Down
Loading