Unverified Commit cde0f93a authored by Niklas Mischkulnig's avatar Niklas Mischkulnig Committed by GitHub

Turbopack: don't watch output FS (#75680)

AFAICT, Next.js doesn't do this either
and this seems to solve this error
```
thread '<unnamed>' panicked at turbopack/crates/turbo-tasks-backend/src/backend/mod.rs:949:13:
Dependency tracking is disabled so invalidation is not allowed

thread 'tokio-runtime-worker' panicked at turbopack/crates/turbo-tasks-fs/src/lib.rs:265:63:
called `Result::unwrap()` on an `Err` value: PoisonError { .. }
```
parent bcee095a
...@@ -67,6 +67,5 @@ pub async fn project_fs(project_dir: RcStr) -> Result<Vc<Box<dyn FileSystem>>> { ...@@ -67,6 +67,5 @@ pub async fn project_fs(project_dir: RcStr) -> Result<Vc<Box<dyn FileSystem>>> {
#[turbo_tasks::function] #[turbo_tasks::function]
pub async fn output_fs(project_dir: RcStr) -> Result<Vc<Box<dyn FileSystem>>> { pub async fn output_fs(project_dir: RcStr) -> Result<Vc<Box<dyn FileSystem>>> {
let disk_fs = DiskFileSystem::new("output".into(), project_dir, vec![]); let disk_fs = DiskFileSystem::new("output".into(), project_dir, vec![]);
disk_fs.await?.start_watching(None).await?;
Ok(Vc::upcast(disk_fs)) Ok(Vc::upcast(disk_fs))
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment