Skip to content

Commit

Permalink
remove --no-experimental-fetch and OpenSSL legacy provider
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser committed Sep 5, 2024
1 parent ad415cd commit 04b70e2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,6 @@ await walletFull.close(true);

Node 20 LTS is recommended. Alternatively, Node 16 and 18 LTS work using the `--experimental-wasm-threads` flag.

To avoid the error "Failed to parse URL from /path/to/file.wasm" on Node.js >16:

1. Pass the `--no-experimental-fetch` flag to `node`.
2. Set OpenSSL legacy provider:
- Unix: `export NODE_OPTIONS=--openssl-legacy-provider`
- Windows: `set NODE_OPTIONS=--openssl-legacy-provider`

#### Building a browser application
1. Bundle your application code for a browser. See [xmr-sample-webpack](https://github.com/woodser/xmr-sample-webpack) for an example project using Webpack.
2. Copy assets from ./dist to your web app's build directory.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"start": "todo",
"build_web_worker": "webpack --config ./webpack.worker.js",
"build_web_tests": "webpack --config ./webpack.tests.js",
"test": "npm run build_commonjs && node --enable-source-maps --no-experimental-fetch node_modules/mocha/bin/_mocha --require @babel/register \"dist/src/test/TestAll\" --timeout 900000000 --exit",
"test": "npm run build_commonjs && node --enable-source-maps node_modules/mocha/bin/_mocha --require @babel/register \"dist/src/test/TestAll\" --timeout 900000000 --exit",
"typedoc": "typedoc ./index.ts --out ./docs/typedocs --excludePrivate --disableSources",
"build_commonjs": "babel ./src --extensions \".js,.ts\" --out-dir ./dist/src && babel ./index.ts --extensions \".ts\" --out-dir ./dist && shx mkdir -p dist/dist && shx cp dist/monero_wallet_full.js dist/monero_wallet_keys.js dist/dist && shx cp dist/*.js.map dist/dist && shx cp dist/*.wasm dist/dist",
"check_babel_version": "babel -V"
Expand Down

0 comments on commit 04b70e2

Please sign in to comment.