Skip to content

[Bug]: incorrect ESM output with async wasm #1355

@PupilTong

Description

@PupilTong

Version

System:
    OS: Linux 6.14 Ubuntu 24.04.3 LTS 24.04.3 LTS (Noble Numbat)
    CPU: (32) x64 Intel(R) Core(TM) i9-14900K
    Memory: 86.84 GB / 125.49 GB
    Container: Yes
    Shell: 5.2.21 - /bin/bash
  Browsers:
    Chrome: 142.0.7444.134
    Chromium: 142.0.7444.59
    Firefox: 144.0.2
    Firefox Developer Edition: 144.0.2
  npmPackages:
    @rslib/core: ^0.18.0 => 0.18.0

Details

See reproduce

Reproduce link

https://github.com/PupilTong/wbg_array_element_ownership/tree/rslib_bug_report_async_wasm

Reproduce Steps

reproduce:

pnpm build
pnpm test
Image

vitest works fine
rslib output has no hello() exported

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions