rspack_core 0.7.11

rspack core
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::Cache;
use crate::compilation::build_module_graph::BuildModuleGraphArtifact;

/// Disable cache implementation
///
/// Disable cache will clean the corresponding artifact before target step run.
#[derive(Debug)]
pub struct DisableCache;

#[async_trait::async_trait]
impl Cache for DisableCache {
  async fn before_build_module_graph(&mut self, make_artifact: &mut BuildModuleGraphArtifact) {
    *make_artifact = Default::default();
  }
}