@cedarjs/vite 6.0.0-canary.2662 → 6.0.0-canary.2663
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/buildApp.d.ts.map +1 -1
- package/dist/buildApp.js +16 -1
- package/dist/cjs/buildApp.js +13 -1
- package/package.json +13 -13
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":"AA2DA,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,iBA6X3B"}
|
package/dist/buildApp.js
CHANGED
|
@@ -14,6 +14,10 @@ import {
|
|
|
14
14
|
getApiSideBabelPlugins,
|
|
15
15
|
transformWithBabel
|
|
16
16
|
} from "@cedarjs/babel-config";
|
|
17
|
+
import {
|
|
18
|
+
applyEsmExtensions,
|
|
19
|
+
applySrcAlias
|
|
20
|
+
} from "@cedarjs/internal/dist/build/api.js";
|
|
17
21
|
import { findApiFiles } from "@cedarjs/internal/dist/files.js";
|
|
18
22
|
import { getConfig, getPaths, projectSideIsEsm } from "@cedarjs/project-config";
|
|
19
23
|
import { getWorkspacePackageAliases } from "./lib/workspacePackageAliases.js";
|
|
@@ -281,8 +285,19 @@ async function buildCedarApp({
|
|
|
281
285
|
true
|
|
282
286
|
);
|
|
283
287
|
if (transformedCode?.code) {
|
|
288
|
+
const fromDirRelativeToApiSrc = path.relative(
|
|
289
|
+
cedarPaths.api.src,
|
|
290
|
+
path.dirname(id)
|
|
291
|
+
);
|
|
292
|
+
let outputCode = applySrcAlias(
|
|
293
|
+
transformedCode.code,
|
|
294
|
+
fromDirRelativeToApiSrc
|
|
295
|
+
);
|
|
296
|
+
if (projectSideIsEsm("api")) {
|
|
297
|
+
outputCode = applyEsmExtensions(outputCode, id);
|
|
298
|
+
}
|
|
284
299
|
return {
|
|
285
|
-
code:
|
|
300
|
+
code: outputCode,
|
|
286
301
|
map: transformedCode.map ?? null
|
|
287
302
|
};
|
|
288
303
|
}
|
package/dist/cjs/buildApp.js
CHANGED
|
@@ -39,6 +39,7 @@ var import_vite2 = require("vite");
|
|
|
39
39
|
var import_vite_plugin_graphql_tag = require("vite-plugin-graphql-tag");
|
|
40
40
|
var import_vite_tsconfig_paths = __toESM(require("vite-tsconfig-paths"), 1);
|
|
41
41
|
var import_babel_config = require("@cedarjs/babel-config");
|
|
42
|
+
var import_api = require("@cedarjs/internal/dist/build/api.js");
|
|
42
43
|
var import_files = require("@cedarjs/internal/dist/files.js");
|
|
43
44
|
var import_project_config = require("@cedarjs/project-config");
|
|
44
45
|
var import_workspacePackageAliases = require("./lib/workspacePackageAliases.js");
|
|
@@ -311,8 +312,19 @@ async function buildCedarApp({
|
|
|
311
312
|
true
|
|
312
313
|
);
|
|
313
314
|
if (transformedCode?.code) {
|
|
315
|
+
const fromDirRelativeToApiSrc = import_node_path.default.relative(
|
|
316
|
+
cedarPaths.api.src,
|
|
317
|
+
import_node_path.default.dirname(id)
|
|
318
|
+
);
|
|
319
|
+
let outputCode = (0, import_api.applySrcAlias)(
|
|
320
|
+
transformedCode.code,
|
|
321
|
+
fromDirRelativeToApiSrc
|
|
322
|
+
);
|
|
323
|
+
if ((0, import_project_config.projectSideIsEsm)("api")) {
|
|
324
|
+
outputCode = (0, import_api.applyEsmExtensions)(outputCode, id);
|
|
325
|
+
}
|
|
314
326
|
return {
|
|
315
|
-
code:
|
|
327
|
+
code: outputCode,
|
|
316
328
|
map: transformedCode.map ?? null
|
|
317
329
|
};
|
|
318
330
|
}
|
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.2663",
|
|
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.2663",
|
|
67
|
+
"@cedarjs/babel-config": "6.0.0-canary.2663",
|
|
68
|
+
"@cedarjs/context": "6.0.0-canary.2663",
|
|
69
|
+
"@cedarjs/cookie-jar": "6.0.0-canary.2663",
|
|
70
|
+
"@cedarjs/graphql-server": "6.0.0-canary.2663",
|
|
71
|
+
"@cedarjs/internal": "6.0.0-canary.2663",
|
|
72
|
+
"@cedarjs/project-config": "6.0.0-canary.2663",
|
|
73
|
+
"@cedarjs/server-store": "6.0.0-canary.2663",
|
|
74
|
+
"@cedarjs/testing": "6.0.0-canary.2663",
|
|
75
75
|
"@fastify/url-data": "6.0.3",
|
|
76
76
|
"@swc/core": "1.15.41",
|
|
77
77
|
"@universal-deploy/store": "^0.2.1",
|
|
@@ -108,9 +108,9 @@
|
|
|
108
108
|
},
|
|
109
109
|
"devDependencies": {
|
|
110
110
|
"@arethetypeswrong/cli": "0.18.5",
|
|
111
|
-
"@cedarjs/auth": "6.0.0-canary.
|
|
112
|
-
"@cedarjs/router": "6.0.0-canary.
|
|
113
|
-
"@cedarjs/web": "6.0.0-canary.
|
|
111
|
+
"@cedarjs/auth": "6.0.0-canary.2663",
|
|
112
|
+
"@cedarjs/router": "6.0.0-canary.2663",
|
|
113
|
+
"@cedarjs/web": "6.0.0-canary.2663",
|
|
114
114
|
"@hyrious/esbuild-plugin-commonjs": "0.2.6",
|
|
115
115
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
116
116
|
"@types/aws-lambda": "8.10.162",
|