FuelLabs / fuel-vm

Fuel v2 interpreter in Rust
Other
358 stars 88 forks source link

Fixing WASM-NPM packaging and publishing #835

Closed arboleya closed 1 month ago

arboleya commented 1 month ago

The generated WASM/JS code changed in v0.57.0, and the regexes used to patch it stopped working.

This prevented dependent NPM packages, including the TS SDK and all apps using it, from building.

Error: Can't resolve 'fuel_asm_bg.wasm' in '/.../fuels-ts/node_modules/.pnpm/@fuels+vm-asm@0.57.0/node_modules/@fuels/vm-asm/dist/web'

This PR fixes those regexes and updates the essential tools used for packaging.

Before requesting review