We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7850bf3 commit 12ff9d7Copy full SHA for 12ff9d7
src/plugins/transform-jsx-spread/index.js
@@ -85,7 +85,9 @@ export default ({ types: t }) => {
85
visitor: {
86
JSXOpeningElement(path, state) {
87
const useSpread = state.opts.useSpread === true;
88
- const hasSpread = path.node.attributes.some(attr => t.isJSXSpreadAttribute(attr));
+ const hasSpread = path.node.attributes.some(attr =>
89
+ t.isJSXSpreadAttribute(attr)
90
+ );
91
92
// ignore JSX Elements without spread or with lone spread:
93
if (!hasSpread || path.node.attributes.length === 1) return;
0 commit comments