@lark-apaas/fullstack-presets 1.1.3-beta.6 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -62,7 +62,8 @@ const rule = {
|
|
|
62
62
|
if (current.type === 'JSXElement' || current.type === 'JSXFragment') {
|
|
63
63
|
jsxElementCount++;
|
|
64
64
|
// Check if any sibling or ancestor siblings contain a styled-jsx tag
|
|
65
|
-
|
|
65
|
+
// Always update to find the outermost styled-jsx, not the first encountered
|
|
66
|
+
if (current.parent) {
|
|
66
67
|
const parentNode = current.parent;
|
|
67
68
|
// Check if parent has children that we can iterate
|
|
68
69
|
const children = parentNode.children ||
|
|
@@ -81,6 +82,7 @@ const rule = {
|
|
|
81
82
|
attr.name?.type === 'JSXIdentifier' &&
|
|
82
83
|
attr.name?.name === 'jsx');
|
|
83
84
|
if (hasChildJsxAttr) {
|
|
85
|
+
// Always update to find the outermost styled-jsx
|
|
84
86
|
outerStyledJsxNode = child;
|
|
85
87
|
break;
|
|
86
88
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lark-apaas/fullstack-presets",
|
|
3
|
-
"version": "1.1.3
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"files": [
|
|
5
5
|
"lib"
|
|
6
6
|
],
|
|
@@ -45,5 +45,6 @@
|
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"eslint": "^9.0.0",
|
|
47
47
|
"typescript-eslint": "^8.44.0"
|
|
48
|
-
}
|
|
48
|
+
},
|
|
49
|
+
"gitHead": "bc9469110ed352267d992d7406578d00bc3ffe03"
|
|
49
50
|
}
|