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
use std::sync::Arc;

use arcstr::ArcStr;
use oxc::span::Span;
use oxc_index::IndexVec;
use rolldown_utils::dashmap::FxDashMap;
use rustc_hash::FxHashMap;

use crate::{
  Chunk, ChunkIdx, ModuleInfo, types::member_expr_ref_resolution::MemberExprRefResolution,
};

pub type IndexChunks = IndexVec<ChunkIdx, Chunk>;

pub type MemberExprRefResolutionMap = FxHashMap<Span, MemberExprRefResolution>;

pub type SharedModuleInfoDashMap = Arc<FxDashMap<ArcStr, Arc<ModuleInfo>>>;