swc
swc copied to clipboard
Invalid test for swc, core-js forEach import polyfill not working
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