@cedarjs/babel-config 2.2.0-rc.34 → 2.2.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.
|
@@ -66,7 +66,7 @@ function getRedwoodPaths(state) {
|
|
|
66
66
|
}
|
|
67
67
|
function wrapExportNamedDeclaration(path, state, t) {
|
|
68
68
|
const declaration = path.node.declaration;
|
|
69
|
-
const declarationIsSupported = declaration
|
|
69
|
+
const declarationIsSupported = declaration?.type === "VariableDeclaration" && declaration.declarations[0].init?.type === "ArrowFunctionExpression";
|
|
70
70
|
if (!declarationIsSupported) {
|
|
71
71
|
return;
|
|
72
72
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/babel-config",
|
|
3
|
-
"version": "2.2.0
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -35,21 +35,21 @@
|
|
|
35
35
|
"@babel/register": "7.28.3",
|
|
36
36
|
"@babel/runtime-corejs3": "7.28.4",
|
|
37
37
|
"@babel/traverse": "7.28.5",
|
|
38
|
-
"@cedarjs/project-config": "2.2.0
|
|
38
|
+
"@cedarjs/project-config": "2.2.0",
|
|
39
39
|
"babel-plugin-auto-import": "1.1.0",
|
|
40
40
|
"babel-plugin-graphql-tag": "3.3.0",
|
|
41
41
|
"babel-plugin-module-resolver": "5.0.2",
|
|
42
|
-
"core-js": "3.
|
|
42
|
+
"core-js": "3.47.0",
|
|
43
43
|
"fast-glob": "3.3.3",
|
|
44
|
-
"graphql": "16.
|
|
44
|
+
"graphql": "16.12.0",
|
|
45
45
|
"typescript": "5.9.3"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@cedarjs/framework-tools": "2.2.0
|
|
48
|
+
"@cedarjs/framework-tools": "2.2.0",
|
|
49
49
|
"@types/babel-plugin-tester": "9.0.10",
|
|
50
50
|
"@types/babel__core": "7.20.5",
|
|
51
51
|
"@types/babel__register": "7.17.3",
|
|
52
|
-
"@types/node": "24.10.
|
|
52
|
+
"@types/node": "24.10.4",
|
|
53
53
|
"babel-plugin-tester": "11.0.4",
|
|
54
54
|
"tsx": "4.21.0",
|
|
55
55
|
"vitest": "3.2.4"
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "9a8306e575225c25573303a8c80c57b2ab09fbd5"
|
|
61
61
|
}
|