Files
55aa176d8a fix: skip flattening spread object with __proto__ (#14759)
* fix: skip flattening spread object with __proto__

* update Babel 8 testcases

* fix single spread element optimization

* Update packages/babel-plugin-transform-react-jsx/src/create-plugin.ts

Co-authored-by: Nicolò Ribaudo <[email protected]>

* update test fixtures

Co-authored-by: Nicolò Ribaudo <[email protected]>
2022-07-18 10:34:55 -04:00

12 lines
236 B
JavaScript

<p {...props}>text</p>;
<div {...props}>{contents}</div>;
<img alt="" {...{src, title, __proto__}} />;
<blockquote {...{cite}}>{items}</blockquote>;
<pre {...{["__proto__"]: null }}></pre>;
<code {...{[__proto__]: null }}></code>;