Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
10 changes: 7 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1490,9 +1490,13 @@ impl<Fs: FileSystem + Send + Sync> ResolverGeneric<Fs> {
&tsconfig_options.references,
)
.await?;
for dependency in &tsconfig.file_dependencies {
ctx.add_file_dependency(dependency.as_path());
}
// TODO: restore once these can be reported without costing `module count * tsconfig count`.
// Temporarily disabled: a monorepo with project references bursts memory in the consumer,
// which keeps this set per module. Trade-off: tsconfig edits won't invalidate watch builds.
// See `tsconfig_file_as_file_dependencies`, ignored for now.
// for dependency in &tsconfig.file_dependencies {
// ctx.add_file_dependency(dependency.as_path());
// }
let paths = tsconfig.resolve(cached_path.path(), specifier);
for path in paths {
let cached_path = self.cache.value(&path);
Expand Down
2 changes: 2 additions & 0 deletions src/tests/tsconfig_project_references.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ async fn auto() {
}

#[tokio::test]
#[ignore = "temporary workaround: tsconfig and its references are no longer reported as file dependencies, \
because a monorepo with many project references bursts memory in the consumer"]
async fn tsconfig_file_as_file_dependencies() {
Comment thread
stormslowly marked this conversation as resolved.
let f = super::fixture_root().join("tsconfig/cases/project_references");

Expand Down
Loading