@umijs/ast 4.5.3 → 4.6.0
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.
|
@@ -44,8 +44,7 @@ function getExportProps(code) {
|
|
|
44
44
|
enter(path) {
|
|
45
45
|
const node = path.node;
|
|
46
46
|
const defaultExport = findExportDefault(node);
|
|
47
|
-
if (!defaultExport)
|
|
48
|
-
return;
|
|
47
|
+
if (!defaultExport) return;
|
|
49
48
|
if (t.isIdentifier(defaultExport)) {
|
|
50
49
|
const { name } = defaultExport;
|
|
51
50
|
props = findAssignmentExpressionProps({
|
|
@@ -196,8 +196,7 @@ function findClassStaticProperty(node) {
|
|
|
196
196
|
return "static" in p && p.static === true;
|
|
197
197
|
}
|
|
198
198
|
let body = node.body;
|
|
199
|
-
if (!t.isClassBody(body))
|
|
200
|
-
return;
|
|
199
|
+
if (!t.isClassBody(body)) return;
|
|
201
200
|
const target = {};
|
|
202
201
|
body.body.forEach((p) => {
|
|
203
202
|
if (isStaticNode(p) && t.isIdentifier(p.key)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/ast",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"description": "@umijs/ast",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi/tree/master/packages/ast#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi/issues",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@umijs/bundler-utils": "4.
|
|
18
|
+
"@umijs/bundler-utils": "4.6.0"
|
|
19
19
|
},
|
|
20
20
|
"publishConfig": {
|
|
21
21
|
"access": "public"
|