Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Sep 5, 2023
1 parent c3cac64 commit c634e9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions bindings/binding_core_node/src/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,16 @@ impl Task for BundleTask {
None,
None,
true,
codegen_target,
SourceMapsConfig::Bool(true),
// TODO
&Default::default(),
None,
minify,
None,
true,
false,
Default::default(),
swc_core::ecma::codegen::Config::default()
.with_target(codegen_target)
.with_minify(minify),
)?;

Ok((k, output))
Expand Down
4 changes: 2 additions & 2 deletions bindings/binding_core_node/src/print.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl Task for PrintTask {
None,
options.config.emit_source_map_columns.into_bool(),
Default::default(),
swc_ecma_codegen::Config::default()
swc_core::ecma::codegen::Config::default()
.with_target(options.config.jsc.target.unwrap_or(EsVersion::Es2020))
.with_minify(options.config.minify.into_bool()),
)
Expand Down Expand Up @@ -112,7 +112,7 @@ pub fn print_sync(program: String, options: Buffer) -> napi::Result<TransformOut
options.config.emit_source_map_columns.into_bool(),
false,
Default::default(),
swc_ecma_codegen::Config::default()
swc_core::ecma::codegen::Config::default()
.with_target(codegen_target)
.with_minify(options.config.minify.into_bool()),
)
Expand Down

0 comments on commit c634e9a

Please sign in to comment.