Skip to content

Commit

Permalink
fix(plugins): make rust plugin stage compatible with webpack
Browse files Browse the repository at this point in the history
Closes #7862
  • Loading branch information
pawel-twardziak committed Sep 20, 2024
1 parent e58ac85 commit 6fa723a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/node_binding/src/plugins/interceptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ use rspack_plugin_javascript::{JavascriptModulesChunkHash, JavascriptModulesChun
#[napi(object)]
pub struct JsTap {
pub function: JsFunction,
pub stage: i32,
pub stage: f64,
}

pub struct ThreadsafeJsTap<T: 'static, R> {
pub function: ThreadsafeFunction<T, R>,
pub stage: i32,
pub stage: f64,
}

impl<T: 'static, R> Clone for ThreadsafeJsTap<T, R> {
Expand Down Expand Up @@ -242,7 +242,7 @@ macro_rules! define_register {
#[derive(Clone)]
struct $tap_name {
function: ThreadsafeFunction<$arg, $ret>,
stage: i32,
stage: f64,
}

impl $tap_name {
Expand Down

0 comments on commit 6fa723a

Please sign in to comment.