Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
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<CssImport>,
}
#[turbo_tasks::value_trait]
pub trait CodeGenerateable {
#[turbo_tasks::function]
fn code_generation(
self: Vc<Self>,
chunking_context: Vc<Box<dyn ChunkingContext>>,
) -> Vc<CodeGeneration>;
}