0.28.0 • Published 5 months ago

ergo-lib-wasm-browser v0.28.0

Weekly downloads
39
License
CC0-1.0
Repository
github
Last release
5 months 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.28.0

11 months ago

0.26.0

2 years ago

0.24.1

2 years ago

0.25.0

2 years ago

0.24.0

2 years ago

0.23.0

2 years ago

0.22.0

2 years ago

0.21.1

3 years ago

0.21.0

3 years ago

0.20.1

3 years ago

0.20.0

3 years ago

0.17.0

3 years ago

0.19.0

3 years ago

0.18.0

3 years ago

0.16.0

3 years ago

0.16.1

3 years ago

0.15.0

3 years ago

0.14.0

4 years ago

0.13.0

4 years ago

0.13.1

4 years ago

0.13.2

4 years ago

0.13.3

4 years ago

0.11.0

4 years ago

0.12.0

4 years ago

0.10.0

4 years ago

0.12.0-next

4 years ago

0.9.0

4 years ago

0.8.0

4 years ago

0.7.0

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.4.4

4 years ago

0.4.3

4 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.1

5 years ago