0.26.0 • Published 20 hours ago

ergo-lib-wasm-browser v0.26.0

Weekly downloads
39
License
CC0-1.0
Repository
github
Last release
20 hours ago

Latest Version Documentation

WebAssembly library with JS/TS bindings for sigma-rust.

Packages(npm):

Troubleshooting

When I build the ergo-lib-wasm and include the pkg folder as dependency in my app I get "TypeError: TextDecoder is not a constructor".

Make sure webpack plugins TextDecoder and TextEncoder are enabled. Check the following lines in webpack config:

new webpack.ProvidePlugin({
      TextDecoder: ['text-encoder', 'TextDecoder'],
      TextEncoder: ['text-encoder', 'TextEncoder']
    })

https://github.com/ergoplatform/sigma-rust/blob/develop/bindings/ergo-lib-wasm/webpack.config.js#L16

Using with create-react-app

CRA does not support WASM. But you can workaround it. You need to override webpack config. Check out - https://stackoverflow.com/questions/59319775/how-to-use-webassembly-wasm-with-create-react-app/59720645#59720645

0.26.0

7 months ago

0.24.1

8 months ago

0.25.0

7 months ago

0.24.0

1 year ago

0.23.0

1 year ago

0.22.0

1 year ago

0.21.1

1 year ago

0.21.0

2 years ago

0.20.1

2 years ago

0.20.0

2 years ago

0.17.0

2 years ago

0.19.0

2 years ago

0.18.0

2 years ago

0.16.0

2 years ago

0.16.1

2 years ago

0.15.0

2 years ago

0.14.0

3 years ago

0.13.0

3 years ago

0.13.1

3 years ago

0.13.2

3 years ago

0.13.3

3 years ago

0.11.0

3 years ago

0.12.0

3 years ago

0.10.0

3 years ago

0.12.0-next

3 years ago

0.9.0

3 years ago

0.8.0

3 years ago

0.7.0

3 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.4.4

3 years ago

0.4.3

3 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.0

4 years ago

0.2.1

4 years ago