@babel/plugin-transform-spread regression of spread array #8907
Labels
7.x: regression
i: bug
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
v7 Regression
Potential Commit/PR that introduced the regression
If you have time to investigate, what PR/date introduced this issue.
#6763
before that PR
[...array]
was transpiled to[].concat(array)
now it'sarray.concat()
, this change breaks immutable array(seamless-immutable), for exampleit prints
false
in console of latest Chrome and in Node v8.11.3, but it prints true with Babel@7, it should befalse
, but as it's transpiled toarray.concat()
, and an immutable array returns immutable array too with builtin methods(concat
,map
,reduce
...)Describe the regression
A clear and concise description of what the regression is.
Input Code
Babel Configuration (.babelrc, package.json, cli command)
Expected behavior/code
A clear and concise description of what you expected to happen (or code).
Environment
cli
,register
,loader
]The text was updated successfully, but these errors were encountered: