swc icon indicating copy to clipboard operation
swc copied to clipboard

Invalid test for swc, core-js forEach import polyfill not working

Open gitrequests opened this issue 7 months ago • 0 comments

Output data in test crates/swc/tests/fixture/issues-9xxx/9544/output/1.js is invalid. This output should also require web.dom-collections.for-each.js Like this one: require("core-js/modules/web.dom-collections.for-each.js");

https://github.com/swc-project/swc/blob/dc603ed5f79fd05d13d05bc10faa9b2ca15e23e3/crates/swc/tests/fixture/issues-9xxx/9544/output/1.js#L1-L4

But this is not in the output, so the test is invalid.

This bug is described in this issue: #9544

gitrequests avatar May 23 '25 09:05 gitrequests