Skip to content

Commit

Permalink
fix: use utf-16 in builtin:swc-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
h-a-n-a committed Sep 25, 2023
1 parent 25b34ba commit c2c7876
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/node_binding/src/loader.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
use napi::Result;
use napi::{bindgen_prelude::*, Result};
use rspack_binding_options::{run_builtin_loader as run_builtin, JsLoaderContext};

/// Builtin loader runner
#[napi(catch_unwind)]
#[allow(unused)]
pub async fn run_builtin_loader(
builtin: String,
options: Option<&str>,
options: Option<Utf16String>,
loader_context: JsLoaderContext,
) -> Result<JsLoaderContext> {
run_builtin(builtin, options, loader_context).await
run_builtin(builtin, options.as_deref(), loader_context).await
}

0 comments on commit c2c7876

Please sign in to comment.