use turbo_tasks::{ResolvedVc, Vc}; use turbo_tasks_env::ProcessEnv; use turbo_tasks_fs::FileSystemPath; use turbopack_core::chunk::ChunkingContext; #[turbo_tasks::value] pub struct ExecutionContext { pub project_path: FileSystemPath, pub chunking_context: ResolvedVc>, pub env: ResolvedVc>, } #[turbo_tasks::value_impl] impl ExecutionContext { #[turbo_tasks::function] pub fn new( project_path: FileSystemPath, chunking_context: ResolvedVc>, env: ResolvedVc>, ) -> Vc { ExecutionContext { project_path, chunking_context, env, } .cell() } #[turbo_tasks::function] pub fn project_path(&self) -> Vc { self.project_path.clone().cell() } #[turbo_tasks::function] pub fn chunking_context(&self) -> Vc> { *self.chunking_context } #[turbo_tasks::function] pub fn env(&self) -> Vc> { *self.env } }