Skip to content

Commit 3fef661

Browse files
author
Guy Bedford
authored
fix: debug build (#141)
1 parent 4f9a476 commit 3fef661

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

StarlingMonkey

src/componentize.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const { version } = JSON.parse(
2424
const isWindows = platform === 'win32';
2525
const DEBUG_BINDINGS = false;
2626
const DEBUG_CALLS = false;
27+
const DEBUG_BUILD = false;
2728

2829
function maybeWindowsPath(path) {
2930
if (!path) return path;
@@ -47,7 +48,7 @@ export async function componentize(jsSource, witWorld, opts) {
4748
} = opts || {};
4849

4950
const engine = opts.engine || fileURLToPath(
50-
new URL(opts.enableAot ? `../lib/starlingmonkey_embedding_weval.wasm` : `../lib/starlingmonkey_embedding.wasm`, import.meta.url));
51+
new URL(opts.enableAot ? `../lib/starlingmonkey_embedding_weval.wasm` : `../lib/starlingmonkey_embedding${DEBUG_BUILD ? '.debug' : ''}.wasm`, import.meta.url));
5152

5253
await lexerInit;
5354
let jsImports = [];

0 commit comments

Comments
 (0)