@cedarjs/vite 6.0.0-canary.2641 → 6.0.0-canary.2644
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/vite-plugin-cedar-vitest-api-preset.d.ts.map +1 -1
- package/dist/api/vite-plugin-cedar-vitest-api-preset.js +2 -0
- package/dist/apiDevMiddleware.d.ts.map +1 -1
- package/dist/apiDevMiddleware.js +2 -0
- package/dist/buildApp.d.ts.map +1 -1
- package/dist/buildApp.js +2 -0
- package/dist/cjs/api/vite-plugin-cedar-vitest-api-preset.js +2 -0
- package/dist/cjs/apiDevMiddleware.js +2 -0
- package/dist/cjs/buildApp.js +2 -0
- package/dist/cjs/plugins/vite-plugin-cedar-import-dir.js +33 -15
- package/dist/plugins/vite-plugin-cedar-import-dir.d.ts.map +1 -1
- package/dist/plugins/vite-plugin-cedar-import-dir.js +33 -15
- package/package.json +14 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite-plugin-cedar-vitest-api-preset.d.ts","sourceRoot":"","sources":["../../src/api/vite-plugin-cedar-vitest-api-preset.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vite-plugin-cedar-vitest-api-preset.d.ts","sourceRoot":"","sources":["../../src/api/vite-plugin-cedar-vitest-api-preset.ts"],"names":[],"mappings":"AAUA,wBAAgB,iBAAiB,kEAShC"}
|
|
@@ -3,10 +3,12 @@ import {
|
|
|
3
3
|
cedarVitestApiConfigPlugin,
|
|
4
4
|
trackDbImportsPlugin
|
|
5
5
|
} from "@cedarjs/testing/api/vitest";
|
|
6
|
+
import { cedarImportDirPlugin } from "../plugins/vite-plugin-cedar-import-dir.js";
|
|
6
7
|
import { cedarjsJobPathInjectorPlugin } from "../plugins/vite-plugin-cedarjs-job-path-injector.js";
|
|
7
8
|
import { cedarjsResolveCedarStyleImportsPlugin } from "../plugins/vite-plugin-cedarjs-resolve-cedar-style-imports.js";
|
|
8
9
|
function cedarVitestPreset() {
|
|
9
10
|
return [
|
|
11
|
+
cedarImportDirPlugin(),
|
|
10
12
|
cedarjsJobPathInjectorPlugin(),
|
|
11
13
|
cedarVitestApiConfigPlugin(),
|
|
12
14
|
autoImportsPlugin(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiDevMiddleware.d.ts","sourceRoot":"","sources":["../src/apiDevMiddleware.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAsB,aAAa,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"apiDevMiddleware.d.ts","sourceRoot":"","sources":["../src/apiDevMiddleware.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAsB,aAAa,EAAE,MAAM,MAAM,CAAA;AAkC7D,wBAAsB,gBAAgB,CAAC,UAAU,EAAE,aAAa,iBAe/D;AA+GD,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,aAAa,CAAC,CAiHlE;AA0BD,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,aAAa,GAAG,IAAI,CA0EhE;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,KAIrB,SAAS,OAAO,KAAG,OAAO,CAAC,QAAQ,CAAC,CAoFnD;AAED,wBAAsB,qBAAqB,IAAI,OAAO,CAAC;IACrD,UAAU,EAAE,aAAa,CAAA;IACzB,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IAC1B,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;CACjD,CAAC,CAcD"}
|
package/dist/apiDevMiddleware.js
CHANGED
|
@@ -16,6 +16,7 @@ import { getConfig, getPaths, projectSideIsEsm } from "@cedarjs/project-config";
|
|
|
16
16
|
import { getWorkspacePackageAliases } from "./lib/workspacePackageAliases.js";
|
|
17
17
|
import { cedarAutoImportsPlugin } from "./plugins/vite-plugin-cedar-auto-import.js";
|
|
18
18
|
import { applyGraphqlOptionsExtract } from "./plugins/vite-plugin-cedar-graphql-options-extract.js";
|
|
19
|
+
import { cedarImportDirPlugin } from "./plugins/vite-plugin-cedar-import-dir.js";
|
|
19
20
|
import { applyOtelWrapping } from "./plugins/vite-plugin-cedar-otel-wrapping.js";
|
|
20
21
|
import { cedarjsJobPathInjectorPlugin } from "./plugins/vite-plugin-cedarjs-job-path-injector.js";
|
|
21
22
|
const LAMBDA_FUNCTIONS = {};
|
|
@@ -146,6 +147,7 @@ async function createApiViteServer() {
|
|
|
146
147
|
alias: workspacePkgSourceMap
|
|
147
148
|
},
|
|
148
149
|
plugins: [
|
|
150
|
+
cedarImportDirPlugin(),
|
|
149
151
|
cedarAutoImportsPlugin(),
|
|
150
152
|
cedarjsJobPathInjectorPlugin(),
|
|
151
153
|
(() => {
|
package/dist/buildApp.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildApp.d.ts","sourceRoot":"","sources":["../src/buildApp.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"buildApp.d.ts","sourceRoot":"","sources":["../src/buildApp.ts"],"names":[],"mappings":"AAiDA,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB,EAAE,CAAC,EAAE,OAAO,CAAA;CACb;AAED;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CAAC,EAClC,OAAe,EACf,SAA0B,EAC1B,EAAU,GACX,GAAE,oBAAyB,iBA2V3B"}
|
package/dist/buildApp.js
CHANGED
|
@@ -20,6 +20,7 @@ import { getWorkspacePackageAliases } from "./lib/workspacePackageAliases.js";
|
|
|
20
20
|
import { cedarAutoImportsPlugin } from "./plugins/vite-plugin-cedar-auto-import.js";
|
|
21
21
|
import { cedarGqlormInjectPlugin } from "./plugins/vite-plugin-cedar-gqlorm-inject.js";
|
|
22
22
|
import { cedarGraphqlOptionsExtractPlugin } from "./plugins/vite-plugin-cedar-graphql-options-extract.js";
|
|
23
|
+
import { cedarImportDirPlugin } from "./plugins/vite-plugin-cedar-import-dir.js";
|
|
23
24
|
import { cedarMockCellDataPlugin } from "./plugins/vite-plugin-cedar-mock-cell-data.js";
|
|
24
25
|
import { cedarOtelWrappingPlugin } from "./plugins/vite-plugin-cedar-otel-wrapping.js";
|
|
25
26
|
import { cedarjsJobPathInjectorPlugin } from "./plugins/vite-plugin-cedarjs-job-path-injector.js";
|
|
@@ -246,6 +247,7 @@ async function buildCedarApp({
|
|
|
246
247
|
if (workspace.includes("api")) {
|
|
247
248
|
plugins.push(cedarGraphqlOptionsExtractPlugin());
|
|
248
249
|
plugins.push(cedarGqlormInjectPlugin());
|
|
250
|
+
plugins.push(cedarImportDirPlugin());
|
|
249
251
|
plugins.push(cedarOtelWrappingPlugin());
|
|
250
252
|
plugins.push(cedarjsJobPathInjectorPlugin());
|
|
251
253
|
plugins.push(
|
|
@@ -22,10 +22,12 @@ __export(vite_plugin_cedar_vitest_api_preset_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(vite_plugin_cedar_vitest_api_preset_exports);
|
|
24
24
|
var import_vitest = require("@cedarjs/testing/api/vitest");
|
|
25
|
+
var import_vite_plugin_cedar_import_dir = require("../plugins/vite-plugin-cedar-import-dir.js");
|
|
25
26
|
var import_vite_plugin_cedarjs_job_path_injector = require("../plugins/vite-plugin-cedarjs-job-path-injector.js");
|
|
26
27
|
var import_vite_plugin_cedarjs_resolve_cedar_style_imports = require("../plugins/vite-plugin-cedarjs-resolve-cedar-style-imports.js");
|
|
27
28
|
function cedarVitestPreset() {
|
|
28
29
|
return [
|
|
30
|
+
(0, import_vite_plugin_cedar_import_dir.cedarImportDirPlugin)(),
|
|
29
31
|
(0, import_vite_plugin_cedarjs_job_path_injector.cedarjsJobPathInjectorPlugin)(),
|
|
30
32
|
(0, import_vitest.cedarVitestApiConfigPlugin)(),
|
|
31
33
|
(0, import_vitest.autoImportsPlugin)(),
|
|
@@ -50,6 +50,7 @@ var import_project_config = require("@cedarjs/project-config");
|
|
|
50
50
|
var import_workspacePackageAliases = require("./lib/workspacePackageAliases.js");
|
|
51
51
|
var import_vite_plugin_cedar_auto_import = require("./plugins/vite-plugin-cedar-auto-import.js");
|
|
52
52
|
var import_vite_plugin_cedar_graphql_options_extract = require("./plugins/vite-plugin-cedar-graphql-options-extract.js");
|
|
53
|
+
var import_vite_plugin_cedar_import_dir = require("./plugins/vite-plugin-cedar-import-dir.js");
|
|
53
54
|
var import_vite_plugin_cedar_otel_wrapping = require("./plugins/vite-plugin-cedar-otel-wrapping.js");
|
|
54
55
|
var import_vite_plugin_cedarjs_job_path_injector = require("./plugins/vite-plugin-cedarjs-job-path-injector.js");
|
|
55
56
|
const LAMBDA_FUNCTIONS = {};
|
|
@@ -180,6 +181,7 @@ async function createApiViteServer() {
|
|
|
180
181
|
alias: workspacePkgSourceMap
|
|
181
182
|
},
|
|
182
183
|
plugins: [
|
|
184
|
+
(0, import_vite_plugin_cedar_import_dir.cedarImportDirPlugin)(),
|
|
183
185
|
(0, import_vite_plugin_cedar_auto_import.cedarAutoImportsPlugin)(),
|
|
184
186
|
(0, import_vite_plugin_cedarjs_job_path_injector.cedarjsJobPathInjectorPlugin)(),
|
|
185
187
|
(() => {
|
package/dist/cjs/buildApp.js
CHANGED
|
@@ -45,6 +45,7 @@ var import_workspacePackageAliases = require("./lib/workspacePackageAliases.js")
|
|
|
45
45
|
var import_vite_plugin_cedar_auto_import = require("./plugins/vite-plugin-cedar-auto-import.js");
|
|
46
46
|
var import_vite_plugin_cedar_gqlorm_inject = require("./plugins/vite-plugin-cedar-gqlorm-inject.js");
|
|
47
47
|
var import_vite_plugin_cedar_graphql_options_extract = require("./plugins/vite-plugin-cedar-graphql-options-extract.js");
|
|
48
|
+
var import_vite_plugin_cedar_import_dir = require("./plugins/vite-plugin-cedar-import-dir.js");
|
|
48
49
|
var import_vite_plugin_cedar_mock_cell_data = require("./plugins/vite-plugin-cedar-mock-cell-data.js");
|
|
49
50
|
var import_vite_plugin_cedar_otel_wrapping = require("./plugins/vite-plugin-cedar-otel-wrapping.js");
|
|
50
51
|
var import_vite_plugin_cedarjs_job_path_injector = require("./plugins/vite-plugin-cedarjs-job-path-injector.js");
|
|
@@ -276,6 +277,7 @@ async function buildCedarApp({
|
|
|
276
277
|
if (workspace.includes("api")) {
|
|
277
278
|
plugins.push((0, import_vite_plugin_cedar_graphql_options_extract.cedarGraphqlOptionsExtractPlugin)());
|
|
278
279
|
plugins.push((0, import_vite_plugin_cedar_gqlorm_inject.cedarGqlormInjectPlugin)());
|
|
280
|
+
plugins.push((0, import_vite_plugin_cedar_import_dir.cedarImportDirPlugin)());
|
|
279
281
|
plugins.push((0, import_vite_plugin_cedar_otel_wrapping.cedarOtelWrappingPlugin)());
|
|
280
282
|
plugins.push((0, import_vite_plugin_cedarjs_job_path_injector.cedarjsJobPathInjectorPlugin)());
|
|
281
283
|
plugins.push(
|
|
@@ -31,9 +31,11 @@ __export(vite_plugin_cedar_import_dir_exports, {
|
|
|
31
31
|
cedarImportDirPlugin: () => cedarImportDirPlugin
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(vite_plugin_cedar_import_dir_exports);
|
|
34
|
+
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
34
35
|
var import_node_path = __toESM(require("node:path"), 1);
|
|
35
36
|
var import_napi = require("@ast-grep/napi");
|
|
36
|
-
var
|
|
37
|
+
var import_magic_string = __toESM(require("magic-string"), 1);
|
|
38
|
+
var import_vite = require("vite");
|
|
37
39
|
var import_project_config = require("@cedarjs/project-config");
|
|
38
40
|
function cedarImportDirPlugin() {
|
|
39
41
|
return {
|
|
@@ -55,7 +57,7 @@ function cedarImportDirPlugin() {
|
|
|
55
57
|
}
|
|
56
58
|
const root = ast.root();
|
|
57
59
|
let hasTransformations = false;
|
|
58
|
-
const
|
|
60
|
+
const s = new import_magic_string.default(code);
|
|
59
61
|
const globImports = root.findAll({
|
|
60
62
|
rule: {
|
|
61
63
|
pattern: "import $DEFAULT_IMPORT from $SOURCE"
|
|
@@ -74,20 +76,37 @@ function cedarImportDirPlugin() {
|
|
|
74
76
|
hasTransformations = true;
|
|
75
77
|
const importName = defaultImportNode.text();
|
|
76
78
|
const importGlob = (0, import_project_config.importStatementPath)(sourceValue);
|
|
77
|
-
|
|
79
|
+
let cwd = import_node_path.default.dirname(id);
|
|
80
|
+
if (importGlob.startsWith("src/")) {
|
|
81
|
+
const normalizedId = (0, import_vite.normalizePath)(id);
|
|
82
|
+
const apiBase = (0, import_vite.normalizePath)((0, import_project_config.getPaths)().api.base);
|
|
83
|
+
const webBase = (0, import_vite.normalizePath)((0, import_project_config.getPaths)().web.base);
|
|
84
|
+
if (normalizedId.startsWith(apiBase)) {
|
|
85
|
+
cwd = (0, import_project_config.getPaths)().api.base;
|
|
86
|
+
} else if (normalizedId.startsWith(webBase)) {
|
|
87
|
+
cwd = (0, import_project_config.getPaths)().web.base;
|
|
88
|
+
} else {
|
|
89
|
+
throw new Error(`Unexpected file location: ${id}`);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
78
92
|
try {
|
|
79
|
-
const dirFiles =
|
|
80
|
-
|
|
81
|
-
|
|
93
|
+
const dirFiles = import_node_fs.default.globSync(importGlob, {
|
|
94
|
+
cwd,
|
|
95
|
+
exclude: (n) => n.includes(".test.") || n.includes(".scenarios.") || n.includes(".d.ts")
|
|
96
|
+
});
|
|
82
97
|
const staticGlob = importGlob.split("*")[0];
|
|
83
98
|
const filePathToVarName = (filePath) => {
|
|
84
|
-
|
|
99
|
+
const normalizedPath = (0, import_vite.normalizePath)(filePath);
|
|
100
|
+
return normalizedPath.replace(staticGlob, "").replace(/\.(js|ts)$/, "").replace(/[^a-zA-Z0-9]/g, "_");
|
|
85
101
|
};
|
|
86
102
|
let replacement = `let ${importName} = {};
|
|
87
103
|
`;
|
|
88
104
|
for (const filePath of dirFiles) {
|
|
89
|
-
const
|
|
90
|
-
const
|
|
105
|
+
const normalizedPath = (0, import_vite.normalizePath)(filePath);
|
|
106
|
+
const lastSlash = normalizedPath.lastIndexOf("/");
|
|
107
|
+
const fileDir = lastSlash >= 0 ? normalizedPath.slice(0, lastSlash) : "";
|
|
108
|
+
const fileName = normalizedPath.slice(lastSlash + 1).replace(/\.\w+$/, "");
|
|
109
|
+
const fileImportPath = fileDir ? fileDir + "/" + fileName : fileName;
|
|
91
110
|
const filePathVarName = filePathToVarName(filePath);
|
|
92
111
|
const namespaceImportName = `${importName}_${filePathVarName}`;
|
|
93
112
|
replacement += `import * as ${namespaceImportName} from '${fileImportPath}';
|
|
@@ -95,17 +114,16 @@ function cedarImportDirPlugin() {
|
|
|
95
114
|
replacement += `${importName}.${filePathVarName} = ${namespaceImportName};
|
|
96
115
|
`;
|
|
97
116
|
}
|
|
98
|
-
|
|
117
|
+
const range = importNode.range();
|
|
118
|
+
s.overwrite(range.start.index, range.end.index, replacement.trim());
|
|
99
119
|
} catch (error) {
|
|
100
120
|
console.warn(`Failed to process glob import: ${sourceValue}`, error);
|
|
101
121
|
}
|
|
102
122
|
}
|
|
103
|
-
if (hasTransformations
|
|
104
|
-
const transformedCode = root.commitEdits(edits);
|
|
123
|
+
if (hasTransformations) {
|
|
105
124
|
return {
|
|
106
|
-
code:
|
|
107
|
-
map:
|
|
108
|
-
// For simplicity, not generating source maps
|
|
125
|
+
code: s.toString(),
|
|
126
|
+
map: s.generateMap({ hires: true })
|
|
109
127
|
};
|
|
110
128
|
}
|
|
111
129
|
return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite-plugin-cedar-import-dir.d.ts","sourceRoot":"","sources":["../../src/plugins/vite-plugin-cedar-import-dir.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vite-plugin-cedar-import-dir.d.ts","sourceRoot":"","sources":["../../src/plugins/vite-plugin-cedar-import-dir.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAIlC;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAqI7C"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
1
2
|
import path from "node:path";
|
|
2
3
|
import { parse, Lang } from "@ast-grep/napi";
|
|
3
|
-
import
|
|
4
|
+
import MagicString from "magic-string";
|
|
5
|
+
import { normalizePath } from "vite";
|
|
4
6
|
import { importStatementPath, getPaths } from "@cedarjs/project-config";
|
|
5
7
|
function cedarImportDirPlugin() {
|
|
6
8
|
return {
|
|
@@ -22,7 +24,7 @@ function cedarImportDirPlugin() {
|
|
|
22
24
|
}
|
|
23
25
|
const root = ast.root();
|
|
24
26
|
let hasTransformations = false;
|
|
25
|
-
const
|
|
27
|
+
const s = new MagicString(code);
|
|
26
28
|
const globImports = root.findAll({
|
|
27
29
|
rule: {
|
|
28
30
|
pattern: "import $DEFAULT_IMPORT from $SOURCE"
|
|
@@ -41,20 +43,37 @@ function cedarImportDirPlugin() {
|
|
|
41
43
|
hasTransformations = true;
|
|
42
44
|
const importName = defaultImportNode.text();
|
|
43
45
|
const importGlob = importStatementPath(sourceValue);
|
|
44
|
-
|
|
46
|
+
let cwd = path.dirname(id);
|
|
47
|
+
if (importGlob.startsWith("src/")) {
|
|
48
|
+
const normalizedId = normalizePath(id);
|
|
49
|
+
const apiBase = normalizePath(getPaths().api.base);
|
|
50
|
+
const webBase = normalizePath(getPaths().web.base);
|
|
51
|
+
if (normalizedId.startsWith(apiBase)) {
|
|
52
|
+
cwd = getPaths().api.base;
|
|
53
|
+
} else if (normalizedId.startsWith(webBase)) {
|
|
54
|
+
cwd = getPaths().web.base;
|
|
55
|
+
} else {
|
|
56
|
+
throw new Error(`Unexpected file location: ${id}`);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
45
59
|
try {
|
|
46
|
-
const dirFiles =
|
|
47
|
-
|
|
48
|
-
|
|
60
|
+
const dirFiles = fs.globSync(importGlob, {
|
|
61
|
+
cwd,
|
|
62
|
+
exclude: (n) => n.includes(".test.") || n.includes(".scenarios.") || n.includes(".d.ts")
|
|
63
|
+
});
|
|
49
64
|
const staticGlob = importGlob.split("*")[0];
|
|
50
65
|
const filePathToVarName = (filePath) => {
|
|
51
|
-
|
|
66
|
+
const normalizedPath = normalizePath(filePath);
|
|
67
|
+
return normalizedPath.replace(staticGlob, "").replace(/\.(js|ts)$/, "").replace(/[^a-zA-Z0-9]/g, "_");
|
|
52
68
|
};
|
|
53
69
|
let replacement = `let ${importName} = {};
|
|
54
70
|
`;
|
|
55
71
|
for (const filePath of dirFiles) {
|
|
56
|
-
const
|
|
57
|
-
const
|
|
72
|
+
const normalizedPath = normalizePath(filePath);
|
|
73
|
+
const lastSlash = normalizedPath.lastIndexOf("/");
|
|
74
|
+
const fileDir = lastSlash >= 0 ? normalizedPath.slice(0, lastSlash) : "";
|
|
75
|
+
const fileName = normalizedPath.slice(lastSlash + 1).replace(/\.\w+$/, "");
|
|
76
|
+
const fileImportPath = fileDir ? fileDir + "/" + fileName : fileName;
|
|
58
77
|
const filePathVarName = filePathToVarName(filePath);
|
|
59
78
|
const namespaceImportName = `${importName}_${filePathVarName}`;
|
|
60
79
|
replacement += `import * as ${namespaceImportName} from '${fileImportPath}';
|
|
@@ -62,17 +81,16 @@ function cedarImportDirPlugin() {
|
|
|
62
81
|
replacement += `${importName}.${filePathVarName} = ${namespaceImportName};
|
|
63
82
|
`;
|
|
64
83
|
}
|
|
65
|
-
|
|
84
|
+
const range = importNode.range();
|
|
85
|
+
s.overwrite(range.start.index, range.end.index, replacement.trim());
|
|
66
86
|
} catch (error) {
|
|
67
87
|
console.warn(`Failed to process glob import: ${sourceValue}`, error);
|
|
68
88
|
}
|
|
69
89
|
}
|
|
70
|
-
if (hasTransformations
|
|
71
|
-
const transformedCode = root.commitEdits(edits);
|
|
90
|
+
if (hasTransformations) {
|
|
72
91
|
return {
|
|
73
|
-
code:
|
|
74
|
-
map:
|
|
75
|
-
// For simplicity, not generating source maps
|
|
92
|
+
code: s.toString(),
|
|
93
|
+
map: s.generateMap({ hires: true })
|
|
76
94
|
};
|
|
77
95
|
}
|
|
78
96
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/vite",
|
|
3
|
-
"version": "6.0.0-canary.
|
|
3
|
+
"version": "6.0.0-canary.2644",
|
|
4
4
|
"description": "Vite configuration package for CedarJS",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
"@babel/parser": "7.29.7",
|
|
64
64
|
"@babel/traverse": "7.29.7",
|
|
65
65
|
"@babel/types": "7.29.7",
|
|
66
|
-
"@cedarjs/api": "6.0.0-canary.
|
|
67
|
-
"@cedarjs/babel-config": "6.0.0-canary.
|
|
68
|
-
"@cedarjs/context": "6.0.0-canary.
|
|
69
|
-
"@cedarjs/cookie-jar": "6.0.0-canary.
|
|
70
|
-
"@cedarjs/graphql-server": "6.0.0-canary.
|
|
71
|
-
"@cedarjs/internal": "6.0.0-canary.
|
|
72
|
-
"@cedarjs/project-config": "6.0.0-canary.
|
|
73
|
-
"@cedarjs/server-store": "6.0.0-canary.
|
|
74
|
-
"@cedarjs/testing": "6.0.0-canary.
|
|
66
|
+
"@cedarjs/api": "6.0.0-canary.2644",
|
|
67
|
+
"@cedarjs/babel-config": "6.0.0-canary.2644",
|
|
68
|
+
"@cedarjs/context": "6.0.0-canary.2644",
|
|
69
|
+
"@cedarjs/cookie-jar": "6.0.0-canary.2644",
|
|
70
|
+
"@cedarjs/graphql-server": "6.0.0-canary.2644",
|
|
71
|
+
"@cedarjs/internal": "6.0.0-canary.2644",
|
|
72
|
+
"@cedarjs/project-config": "6.0.0-canary.2644",
|
|
73
|
+
"@cedarjs/server-store": "6.0.0-canary.2644",
|
|
74
|
+
"@cedarjs/testing": "6.0.0-canary.2644",
|
|
75
75
|
"@fastify/url-data": "6.0.3",
|
|
76
76
|
"@swc/core": "1.15.41",
|
|
77
77
|
"@universal-deploy/store": "^0.2.1",
|
|
@@ -87,6 +87,7 @@
|
|
|
87
87
|
"dotenv-defaults": "5.0.2",
|
|
88
88
|
"execa": "5.1.1",
|
|
89
89
|
"express": "4.22.2",
|
|
90
|
+
"fast-glob": "3.3.3",
|
|
90
91
|
"fastify": "5.8.5",
|
|
91
92
|
"fastify-raw-body": "5.0.0",
|
|
92
93
|
"find-my-way": "8.2.2",
|
|
@@ -107,9 +108,9 @@
|
|
|
107
108
|
},
|
|
108
109
|
"devDependencies": {
|
|
109
110
|
"@arethetypeswrong/cli": "0.18.5",
|
|
110
|
-
"@cedarjs/auth": "6.0.0-canary.
|
|
111
|
-
"@cedarjs/router": "6.0.0-canary.
|
|
112
|
-
"@cedarjs/web": "6.0.0-canary.
|
|
111
|
+
"@cedarjs/auth": "6.0.0-canary.2644",
|
|
112
|
+
"@cedarjs/router": "6.0.0-canary.2644",
|
|
113
|
+
"@cedarjs/web": "6.0.0-canary.2644",
|
|
113
114
|
"@hyrious/esbuild-plugin-commonjs": "0.2.6",
|
|
114
115
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
115
116
|
"@types/aws-lambda": "8.10.162",
|