use turbo_tasks::Vc; use turbopack_core::chunk::ChunkingContext; use crate::chunk::CssImport; /// impl of code generation inferred from a ModuleReference. /// This is rust only and can't be implemented by non-rust plugins. #[turbo_tasks::value( shared, serialization = "none", eq = "manual", into = "new", cell = "new" )] pub struct CodeGeneration { #[turbo_tasks(debug_ignore, trace_ignore)] pub imports: Vec, } #[turbo_tasks::value_trait] pub trait CodeGenerateable { #[turbo_tasks::function] fn code_generation( self: Vc, chunking_context: Vc>, ) -> Vc; }