@cedarjs/babel-config 5.0.0-canary.2465 → 5.0.0-canary.2467
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.
- package/dist/api.js +2 -2
- package/dist/plugins/__tests__/babel-plugin-cedar-graphql-options-extract.test.d.ts +2 -0
- package/dist/plugins/__tests__/babel-plugin-cedar-graphql-options-extract.test.d.ts.map +1 -0
- package/dist/plugins/{babel-plugin-redwood-graphql-options-extract.d.ts → babel-plugin-cedar-graphql-options-extract.d.ts} +1 -1
- package/dist/plugins/babel-plugin-cedar-graphql-options-extract.d.ts.map +1 -0
- package/dist/plugins/{babel-plugin-redwood-graphql-options-extract.js → babel-plugin-cedar-graphql-options-extract.js} +7 -7
- package/package.json +3 -3
- package/dist/plugins/__tests__/babel-plugin-redwood-graphql-options-extract.test.d.ts +0 -2
- package/dist/plugins/__tests__/babel-plugin-redwood-graphql-options-extract.test.d.ts.map +0 -1
- package/dist/plugins/babel-plugin-redwood-graphql-options-extract.d.ts.map +0 -1
package/dist/api.js
CHANGED
|
@@ -45,9 +45,9 @@ var import_babel_plugin_module_resolver = require("babel-plugin-module-resolver"
|
|
|
45
45
|
var import_project_config = require("@cedarjs/project-config");
|
|
46
46
|
var import_common = require("./common.js");
|
|
47
47
|
var import_babel_plugin_cedar_gqlorm_inject = __toESM(require("./plugins/babel-plugin-cedar-gqlorm-inject.js"));
|
|
48
|
+
var import_babel_plugin_cedar_graphql_options_extract = __toESM(require("./plugins/babel-plugin-cedar-graphql-options-extract.js"));
|
|
48
49
|
var import_babel_plugin_redwood_context_wrapping = __toESM(require("./plugins/babel-plugin-redwood-context-wrapping.js"));
|
|
49
50
|
var import_babel_plugin_redwood_directory_named_import = __toESM(require("./plugins/babel-plugin-redwood-directory-named-import.js"));
|
|
50
|
-
var import_babel_plugin_redwood_graphql_options_extract = __toESM(require("./plugins/babel-plugin-redwood-graphql-options-extract.js"));
|
|
51
51
|
var import_babel_plugin_redwood_import_dir = __toESM(require("./plugins/babel-plugin-redwood-import-dir.js"));
|
|
52
52
|
var import_babel_plugin_redwood_job_path_injector = __toESM(require("./plugins/babel-plugin-redwood-job-path-injector.js"));
|
|
53
53
|
var import_babel_plugin_redwood_otel_wrapping = __toESM(require("./plugins/babel-plugin-redwood-otel-wrapping.js"));
|
|
@@ -167,7 +167,7 @@ const getApiSideBabelOverrides = ({ projectIsEsm = false } = {}) => {
|
|
|
167
167
|
{
|
|
168
168
|
// match */api/src/functions/graphql.js|ts
|
|
169
169
|
test: /.+api(?:[\\|/])src(?:[\\|/])functions(?:[\\|/])graphql\.(?:js|ts)$/,
|
|
170
|
-
plugins: [
|
|
170
|
+
plugins: [import_babel_plugin_cedar_graphql_options_extract.default, import_babel_plugin_cedar_gqlorm_inject.default]
|
|
171
171
|
},
|
|
172
172
|
// Apply context wrapping to all functions
|
|
173
173
|
{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"babel-plugin-cedar-graphql-options-extract.test.d.ts","sourceRoot":"","sources":["../../../src/plugins/__tests__/babel-plugin-cedar-graphql-options-extract.test.ts"],"names":[],"mappings":""}
|
|
@@ -2,4 +2,4 @@ import type { PluginObj, types } from '@babel/core';
|
|
|
2
2
|
export default function ({ types: t }: {
|
|
3
3
|
types: typeof types;
|
|
4
4
|
}): PluginObj;
|
|
5
|
-
//# sourceMappingURL=babel-plugin-
|
|
5
|
+
//# sourceMappingURL=babel-plugin-cedar-graphql-options-extract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"babel-plugin-cedar-graphql-options-extract.d.ts","sourceRoot":"","sources":["../../src/plugins/babel-plugin-cedar-graphql-options-extract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAY,SAAS,EAAc,KAAK,EAAE,MAAM,aAAa,CAAA;AAkCzE,MAAM,CAAC,OAAO,WAAW,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAAE,KAAK,EAAE,OAAO,KAAK,CAAA;CAAE,GAAG,SAAS,CAyEzE"}
|
|
@@ -16,12 +16,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
21
|
-
default: () =>
|
|
19
|
+
var babel_plugin_cedar_graphql_options_extract_exports = {};
|
|
20
|
+
__export(babel_plugin_cedar_graphql_options_extract_exports, {
|
|
21
|
+
default: () => babel_plugin_cedar_graphql_options_extract_default
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
const exportVariableName = "
|
|
23
|
+
module.exports = __toCommonJS(babel_plugin_cedar_graphql_options_extract_exports);
|
|
24
|
+
const exportVariableName = "__cedar_graphqlOptions";
|
|
25
25
|
function optionsConstNode(t, value, state) {
|
|
26
26
|
if (t.isIdentifier(value) || t.isObjectExpression(value) || t.isCallExpression(value) || t.isConditionalExpression(value)) {
|
|
27
27
|
return t.exportNamedDeclaration(
|
|
@@ -35,9 +35,9 @@ function optionsConstNode(t, value, state) {
|
|
|
35
35
|
);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function babel_plugin_cedar_graphql_options_extract_default({ types: t }) {
|
|
39
39
|
return {
|
|
40
|
-
name: "babel-plugin-
|
|
40
|
+
name: "babel-plugin-cedar-graphql-options-extract",
|
|
41
41
|
visitor: {
|
|
42
42
|
Program(path, state) {
|
|
43
43
|
const importNames = /* @__PURE__ */ new Set();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/babel-config",
|
|
3
|
-
"version": "5.0.0-canary.
|
|
3
|
+
"version": "5.0.0-canary.2467",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@babel/preset-typescript": "7.28.5",
|
|
33
33
|
"@babel/register": "7.29.3",
|
|
34
34
|
"@babel/traverse": "7.29.0",
|
|
35
|
-
"@cedarjs/project-config": "5.0.0-canary.
|
|
35
|
+
"@cedarjs/project-config": "5.0.0-canary.2467",
|
|
36
36
|
"babel-plugin-auto-import": "1.1.0",
|
|
37
37
|
"babel-plugin-graphql-tag": "3.3.0",
|
|
38
38
|
"babel-plugin-module-resolver": "5.0.3",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"typescript": "5.9.3"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@cedarjs/framework-tools": "5.0.0-canary.
|
|
44
|
+
"@cedarjs/framework-tools": "5.0.0-canary.2467",
|
|
45
45
|
"@types/babel-plugin-tester": "11.0.0",
|
|
46
46
|
"@types/babel__core": "7.20.5",
|
|
47
47
|
"@types/babel__register": "7.17.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"babel-plugin-redwood-graphql-options-extract.test.d.ts","sourceRoot":"","sources":["../../../src/plugins/__tests__/babel-plugin-redwood-graphql-options-extract.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"babel-plugin-redwood-graphql-options-extract.d.ts","sourceRoot":"","sources":["../../src/plugins/babel-plugin-redwood-graphql-options-extract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAY,SAAS,EAAc,KAAK,EAAE,MAAM,aAAa,CAAA;AAkCzE,MAAM,CAAC,OAAO,WAAW,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAAE,KAAK,EAAE,OAAO,KAAK,CAAA;CAAE,GAAG,SAAS,CAyEzE"}
|