rslib icon indicating copy to clipboard operation
rslib copied to clipboard

[Bug]: export star statement is unstable

Open fi3ework opened this issue 9 months ago • 2 comments

Version

System:
    OS: macOS 15.0.1
    CPU: (14) arm64 Apple M3 Max
    Memory: 145.75 MB / 36.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 134.0.6998.166
    Safari: 18.0.1

Details

The export star statement is not preserved as expected sometimes. There might be a race condition or repeated behavior in https://github.com/web-infra-dev/rspack/blob/bd3e1c202e600995afa2bfab48fcafeb846893cd/crates/rspack_plugin_library/src/modern_module_library_plugin.rs#L259.

Reproduce link

https://github.com/fi3ework-reproduction/rslib-export-star-random-bug

Reproduce Steps

see README of the repository.

fi3ework avatar Mar 28 '25 03:03 fi3ework

Same bug as https://github.com/web-infra-dev/rspack/issues/8557, but more minimal codebase reproduction.

fi3ework avatar Mar 28 '25 03:03 fi3ework

I hope this issue can be fixed in 1.0

lzxb avatar May 20 '25 12:05 lzxb