diff --git a/crates/node_binding/src/loader.rs b/crates/node_binding/src/loader.rs index 8e23fbf9024..b916afd1ba1 100644 --- a/crates/node_binding/src/loader.rs +++ b/crates/node_binding/src/loader.rs @@ -6,8 +6,8 @@ use rspack_binding_options::{run_builtin_loader as run_builtin, JsLoaderContext} #[allow(unused)] pub async fn run_builtin_loader( builtin: String, - options: Option<&str>, + options: Option, loader_context: JsLoaderContext, ) -> Result { - run_builtin(builtin, options, loader_context).await + run_builtin(builtin, options.as_deref(), loader_context).await }