File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -738,6 +738,11 @@ impl Project {
738
738
* self . mode
739
739
}
740
740
741
+ #[ turbo_tasks:: function]
742
+ pub ( super ) async fn is_watch_enabled ( & self ) -> Result < Vc < bool > > {
743
+ Ok ( Vc :: cell ( self . watch . enable ) )
744
+ }
745
+
741
746
#[ turbo_tasks:: function]
742
747
pub ( super ) async fn per_page_module_graph ( & self ) -> Result < Vc < bool > > {
743
748
Ok ( Vc :: cell ( * self . mode . await ? == NextMode :: Development ) )
@@ -944,7 +949,7 @@ impl Project {
944
949
945
950
// At this point all modules have been computed and we can get rid of the node.js
946
951
// process pools
947
- if self . await ?. watch . enable {
952
+ if * self . is_watch_enabled ( ) . await ? {
948
953
turbopack_node:: evaluate:: scale_down ( ) ;
949
954
} else {
950
955
turbopack_node:: evaluate:: scale_zero ( ) ;
You can’t perform that action at this time.
0 commit comments