Skip to content

Commit 38fb70c

Browse files
authoredJan 15, 2023
fix(es/plugin): Fix starter template (#6815)
**Related issue:** - Closes #6814.
1 parent 767f500 commit 38fb70c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎bindings/swc_cli/src/commands/plugin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ build-wasm32 = "build --target wasm32-unknown-unknown"
202202
.context("failed to write config toml file")?;
203203

204204
// Create package.json for npm package publishing.
205-
let dist_output_path = format!("target/{}/release/{}.wasm", build_target, name);
205+
let dist_output_path = format!("target/{}/release/{}.wasm", build_target, name.replace("-", "_"));
206206
fs::write(
207207
&path.join("package.json"),
208208
format!(

0 commit comments

Comments
 (0)
Please sign in to comment.