Skip to content

Commit

Permalink
fix: expander module load
Browse files Browse the repository at this point in the history
  • Loading branch information
adiwajshing committed Dec 4, 2024
1 parent 004f798 commit ce8d4f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "3.0.1",
"description": "JS Wrappers for Various ZK Snark Circuits",
"main": "lib/index.js",
"type": "commonjs",
"scripts": {
"run:tsc": "SWC_NODE_IGNORE_DYNAMIC=true node -r @swc-node/register",
"test": "SWC_NODE_IGNORE_DYNAMIC=true NODE_ENV=test node --experimental-strip-types node_modules/.bin/jest --forceExit --detectOpenHandles",
Expand Down
2 changes: 1 addition & 1 deletion js/src/expander/wasm-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ async function __wbg_init(module_or_path) {
}

if (typeof module_or_path === 'undefined') {
module_or_path = new URL('expander_symmetric_crypto_bg.wasm', import.meta.url);
module_or_path = new URL('expander_symmetric_crypto_bg.wasm', ''); // NOTE: have manually changed
}
const imports = __wbg_get_imports();

Expand Down
3 changes: 2 additions & 1 deletion js/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"compilerOptions": {
"target": "es2018",
"target": "ESNext",
"module": "commonjs",
"moduleResolution": "node",
"allowJs": true,
"checkJs": false,
"outDir": "lib",
Expand Down

0 comments on commit ce8d4f0

Please sign in to comment.