rspack_core 0.102.0

rspack core
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub use crate::cache::{
  BuildDepsOptions, PathMatcher, PersistentCacheOptions, SnapshotOptions, SnapshotStrategyOptions,
  StorageOptions,
};

#[derive(Debug, Clone)]
pub enum CacheOptions {
  Disabled,
  Memory {
    /// The maximum number of generations to keep in memory.
    ///
    /// For example, if `max_generations` is set to 1,
    /// the cache will be removed if it's not accessed for 1 compilation generation.
    max_generations: u32,
  },
  Persistent(PersistentCacheOptions),
}