Skip to content

Commit

Permalink
Fix for WASM & build
Browse files Browse the repository at this point in the history
  • Loading branch information
kaleidawave committed Nov 13, 2024
1 parent 8bc4e4b commit 78fcb9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl Default for BuildConfig {
lsp_mode: false,
type_definition_module: None,
// TODO not sure
output_path: PathBuf::from("out"),
output_path: PathBuf::from("out.js"),
other_transformers: None,
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/js-cli-and-library/tests/library.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ test("Type checking on code diagnostics", (t) => {
test("Compiling", (t) => {
t.test("Compile", () => {
const example = "const x: 4 = 2 + 2;"
const output = experimental_build("input.ts", (_path) => example, true);
const output = experimental_build("input.ts", (_path) => example, { strip_whitespace: true });
deepStrictEqual(output.diagnostics, []);
deepStrictEqual(output.artifacts, [{ content: 'const x=2+2', output_path: 'out.js' }]);
})
Expand Down

0 comments on commit 78fcb9a

Please sign in to comment.