rolldown_common 0.1.0

This crate is mostly for sharing code between rolldwon crates.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::{path::PathBuf, sync::Arc};

use arcstr::ArcStr;

use crate::{PreliminaryFilename, RollupRenderedChunk};

#[derive(Debug)]

pub struct EcmaAssetMeta {
  pub rendered_chunk: Arc<RollupRenderedChunk>,
  pub debug_id: u128,
  // The updated fields of rendered_chunk after the final render
  pub imports: Vec<ArcStr>,
  pub dynamic_imports: Vec<ArcStr>,
  pub sourcemap_filename: Option<String>,
  pub file_dir: PathBuf,
  pub preliminary_filename: PreliminaryFilename,
}