Babel incorrectly converting/transpiling the following code
const arr = [...new Set([1, 2, 3, 1])]
into
var arr = [].concat(new Set([1, 2, 3, 1]))
The first returns a list of numbers, whereas the other returns a list of set(s)
Is this a Babel bug?
Using @babel/plugin-transform-spread@7.14.6
and @babel/plugin-transform-destructuring@7.14.7