File size: 676 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
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>;
}
|