build(web): fix cjs build

This commit is contained in:
RedCMD 2025-09-13 21:51:42 +12:00 committed by GitHub
parent 580cd9541a
commit ca8b944b53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -199,7 +199,7 @@ pub fn run_wasm(args: &BuildWasm) -> Result<()> {
"-I", "lib/include",
"--js-library", "lib/binding_web/lib/imports.js",
"--pre-js", "lib/binding_web/lib/prefix.js",
"-o", if args.cjs { binding_file!("cjs") } else { binding_file!(".mjs") },
"-o", if args.cjs { binding_file!(".cjs") } else { binding_file!(".mjs") },
"lib/src/lib.c",
"lib/binding_web/lib/tree-sitter.c",
]);