rspack_core 0.7.11

rspack core
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use rspack_error::Result;

use crate::{Compilation, SharedPluginDriver, cache::Cache};

pub async fn make_hook_pass(
  compilation: &mut Compilation,
  plugin_driver: SharedPluginDriver,
  cache: &mut dyn Cache,
) -> Result<()> {
  cache
    .before_build_module_graph(&mut compilation.build_module_graph_artifact)
    .await;

  plugin_driver.compiler_hooks.make.call(compilation).await?;

  Ok(())
}