| 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. | |
| pub struct CodeGeneration { | |
| pub imports: Vec<CssImport>, | |
| } | |
| pub trait CodeGenerateable { | |
| fn code_generation( | |
| self: Vc<Self>, | |
| chunking_context: Vc<Box<dyn ChunkingContext>>, | |
| ) -> Vc<CodeGeneration>; | |
| } | |