Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jan 24, 2024
1 parent 54567e5 commit 5085458
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bindings/binding_core_node/src/print.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ impl Task for PrintTask {
codegen_config: swc_core::ecma::codegen::Config::default()
.with_target(options.config.jsc.target.unwrap_or(EsVersion::Es2020))
.with_minify(options.config.minify.into_bool()),
..Default::default()
},
)
.convert_err()
Expand Down Expand Up @@ -107,6 +108,7 @@ pub fn print_sync(program: String, options: Buffer) -> napi::Result<TransformOut
codegen_config: swc_core::ecma::codegen::Config::default()
.with_target(codegen_target)
.with_minify(options.config.minify.into_bool()),
..Default::default()
},
)
.convert_err()
Expand Down
2 changes: 2 additions & 0 deletions crates/binding_macros/src/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ macro_rules! build_print_sync {
($(#[$m:meta])*, $opt: expr) => {
$(#[$m])*
pub fn print_sync(s: $crate::wasm::JsValue, opts: $crate::wasm::JsValue) -> Result<$crate::wasm::JsValue, $crate::wasm::JsValue> {
use $crate::wasm::PrintArgs;

let c = $crate::wasm::compiler();

$crate::wasm::try_with_handler_globals(
Expand Down

0 comments on commit 5085458

Please sign in to comment.