Closed
Description
Version
System:
OS: macOS 14.5
CPU: (8) x64 Apple M1
Memory: 42.29 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Browsers:
Chrome: 131.0.6778.87
Safari: 17.5
Details
I used polyfill:'usage' to configure compatibility with my browser, but the packaged product es5 syntax has a scope problem, causing my variables to be contaminated. In my code, show_type in 3 should be used instead of show_type in 1(figure 1 is the compiled code ). How do I fix this, Or is this a bug in rsbuild?
Reproduce link
Reproduce Steps
npm run build
checkout index.[hash].js , search "show_type" the result will be appear!!