You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
webschik
changed the title
Keep spread operator instead of generating Object.assign for ReactJSX and es2018+
Keep spread syntax instead of generating Object.assign for ReactJSX and es2018+
Oct 11, 2021
Bug Report
When I have the next compiler options
the spread syntax gets always converted to
Object.assign
call even though it's supported by the ES version.🔎 Search Terms
🕗 Version & Regression Information
I see that this happens in all versions since 4.1.x (4.5.0-beta as well).
⏯ Playground Link
https://www.typescriptlang.org/play?target=6&jsx=4&ts=4.1.5&ssl=12&ssc=24&pln=1&pc=1#code/JYWwDg9gTgLgBAbwGIFcB2BjGwJoMITi4CmaMAvnAGZSFwDkUxAhlvQNwBQoksczYMABkIAcwgBVKABtqtEAwB0igPTK1q0M1HEAzit0A3USoFgAtNLERFR0R07cyxKFVbE4ABVphdiTnCBcAAWxMCiwTAAXHBoKCAARi5cQXAA7sAAJjDBMXGJyQFBGNLMuroAcswgxAD8MbowUMBoolzkjhi4jXAAgoIi4jGomNi4BERopDAAPN4QvgB8cAC8cAAUYD66AJSryzOgonC6UBgrCGaDkjKUCMqKWwu6lCqLXJzEAB688JnEbhQ0ng-WE1i4QA
💻 Code
🙁 Actual behavior
🙂 Expected behavior
The text was updated successfully, but these errors were encountered: