This repository has been archived by the owner on Oct 30, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(compiler): Remove wasm option from noir compiler (#1628)
Issue AztecProtocol/aztec-packages#1597 was preventing users from installing the Aztec CLI via npm. Releasing a new version of `noir_wasm` and `noir-source-resolver` didn't fix the issue unfortunately, and further tweaking `noir-source-resolver` so it's loaded properly leads to errors due since [the resolver is a global object](https://nodejs.org/api/packages.html#approach-2-isolate-state) but it's treated as different objects when loaded as commonjs or esm. So the noir-compiler here is properly configuring the resolver in esm-land, but noir_wasm loads it via commonjs and fails. To make things worse, jest seems to be complaining about misconfigured esm modules here. Given that noir_wasm is not kept up-to-date atm and is not the recommended way to compile noir contracts, I decided to time out and remove it altogether for now. I'm creating a new issue to revisit this in the future. Fixes AztecProtocol/aztec-packages#1597
- Loading branch information