Open 0x009922 opened 2 years ago
This code fails in Vite:
import { init } from '@iroha2/crypto-target-web' await init()
https://github.com/0x009922/iroha-js-sdk-issue-104-repro
It includes error details.
Using ?url suffix:
?url
import { init } from '@iroha2/crypto-target-web' import WASM_URL from '@iroha2/crypto-target-web/wasm-pkg/iroha_crypto_bg.wasm?url' init(WASM_URL).then(() => {/* ... */})
Issue
This code fails in Vite:
Reproduction
https://github.com/0x009922/iroha-js-sdk-issue-104-repro
It includes error details.
Workaround
Using
?url
suffix: