next.js
4390c7b4 - Turbopack: use tracing context for config watching (#86576)

Commit
49 days ago
Turbopack: use tracing context for config watching (#86576) It was using the `evaluate_context` to watch the config (and transitively imported files) for changes. That was incorrect for various reasons though: any errors during that caused the build to fail, and it didn't actually collect all referenced files. Turns out we already have multiple options to enable this, as NFT and "config watching" are really the same thing: ``` ResolveOptions.loose_errors: true (ResolveOptionsContext.collect_affecting_sources: true) ModuleOptionsContext.analyze_mode: AnalyzeMode::Tracing ModuleOptionsContext.tree_shaking_mode: None ``` ~~technically, `any_content_changed_of_module` should actually watch the `affecting_sources` as well though?~~
Author
Parents
Loading