Closed fryorcraken closed 1 year ago
Can you show bundle/
content?
Can you show
bundle/
content?
waku-org/js-rln/bundle feat/verify-no-root ✔ 29d11h ⍉
▶ tree
.
├── 02bce7e5f3bcf834.wasm
├── 20ff36861f56116ae72f.module.wasm
├── 939.index.js
├── assets
│ ├── rln-fb4d7b4b.wasm
│ ├── rln_final-a641c06e.zkey
│ ├── rln_wasm_bg-0185b546.wasm
│ ├── rln_wasm_bg-72ac39a3.wasm
│ └── rln_wasm_bg-a7027f94.wasm
├── index.js
├── rln-0e12a076.js
├── rln-4592cf99.js
├── rln-78416578.js
├── rln-79a18618.js
├── rln-a1a9aa71.js
├── rln-ae2fde2f.js
└── rln-affbe9d4.js
1 directory, 16 files
Something like this will work
module.exports = [
{
name: "RLN Instance",
path: "bundle/index.js",
import: "{ create }",
},
{
name: "RLN WASM addons",
path: "bundle/assets/*.wasm"
},
];
My project https://github.com/waku-org/js-rln uses wasm blobs that are dynamically imported.
When running size-limit with the following config:
The wasm blobs are not included: