mirror of
https://github.com/zhigang1992/nativewind.git
synced 2026-06-15 02:09:06 +08:00
refactor: add comment on jsx spread attributes
This commit is contained in:
@@ -12,7 +12,12 @@ export function someAttributes(
|
||||
const openingElement = path.node.openingElement;
|
||||
|
||||
return openingElement.attributes.some((attribute) => {
|
||||
// Ignore spreads, we cannot process them
|
||||
/**
|
||||
* I think we should be able to process spread attributes
|
||||
* by checking their binding, but I still learning how this works
|
||||
*
|
||||
* If your reading this and understand Babel bindings please send a PR
|
||||
*/
|
||||
if (isJSXSpreadAttribute(attribute)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user