@cedarjs/prerender 1.0.0-canary.12518 → 1.0.0-canary.12520
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-runner.d.ts","sourceRoot":"","sources":["../../src/graphql/node-runner.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"node-runner.d.ts","sourceRoot":"","sources":["../../src/graphql/node-runner.ts"],"names":[],"mappings":"AAmDA,qBAAa,UAAU;IACrB,OAAO,CAAC,UAAU,CAAC,CAA2B;IAC9C,OAAO,CAAC,MAAM,CAAC,CAA4B;IAErC,IAAI;IA6BJ,UAAU,CAAC,QAAQ,EAAE,MAAM;IAQ3B,KAAK;CAGZ"}
|
|
@@ -2,11 +2,7 @@ import { createServer, version as viteVersion } from "vite";
|
|
|
2
2
|
import { ViteNodeRunner } from "vite-node/client";
|
|
3
3
|
import { ViteNodeServer } from "vite-node/server";
|
|
4
4
|
import { installSourcemapsSupport } from "vite-node/source-map";
|
|
5
|
-
import {
|
|
6
|
-
getPaths,
|
|
7
|
-
importStatementPath,
|
|
8
|
-
projectIsEsm
|
|
9
|
-
} from "@cedarjs/project-config";
|
|
5
|
+
import { getPaths, projectIsEsm } from "@cedarjs/project-config";
|
|
10
6
|
import {
|
|
11
7
|
cedarCellTransform,
|
|
12
8
|
cedarjsDirectoryNamedImportPlugin,
|
|
@@ -25,38 +21,9 @@ async function createViteServer() {
|
|
|
25
21
|
},
|
|
26
22
|
resolve: {
|
|
27
23
|
alias: [
|
|
28
|
-
{
|
|
29
|
-
find: /^\$api\//,
|
|
30
|
-
replacement: getPaths().api.base + "/"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
find: /^\$web\//,
|
|
34
|
-
replacement: getPaths().web.base + "/"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
find: /^api\//,
|
|
38
|
-
replacement: getPaths().api.base + "/"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
find: /^web\//,
|
|
42
|
-
replacement: getPaths().web.base + "/"
|
|
43
|
-
},
|
|
44
24
|
{
|
|
45
25
|
find: /^src\//,
|
|
46
|
-
replacement: "
|
|
47
|
-
customResolver: (id, importer, _options) => {
|
|
48
|
-
const apiImportBase = importStatementPath(getPaths().api.base);
|
|
49
|
-
const webImportBase = importStatementPath(getPaths().web.base);
|
|
50
|
-
let resolved = null;
|
|
51
|
-
if (importer?.startsWith(apiImportBase)) {
|
|
52
|
-
const apiImportSrc = importStatementPath(getPaths().api.src);
|
|
53
|
-
resolved = { id: id.replace("src", apiImportSrc) };
|
|
54
|
-
} else if (importer?.startsWith(webImportBase)) {
|
|
55
|
-
const webImportSrc = importStatementPath(getPaths().web.src);
|
|
56
|
-
resolved = { id: id.replace("src", webImportSrc) };
|
|
57
|
-
}
|
|
58
|
-
return resolved;
|
|
59
|
-
}
|
|
26
|
+
replacement: getPaths().api.src + "/"
|
|
60
27
|
}
|
|
61
28
|
]
|
|
62
29
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/prerender",
|
|
3
|
-
"version": "1.0.0-canary.
|
|
3
|
+
"version": "1.0.0-canary.12520+71a6fc8c0",
|
|
4
4
|
"description": "RedwoodJS prerender",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"@babel/generator": "7.27.5",
|
|
44
44
|
"@babel/parser": "7.27.5",
|
|
45
45
|
"@babel/traverse": "7.27.4",
|
|
46
|
-
"@cedarjs/babel-config": "1.0.0-canary.
|
|
47
|
-
"@cedarjs/project-config": "1.0.0-canary.
|
|
48
|
-
"@cedarjs/router": "1.0.0-canary.
|
|
49
|
-
"@cedarjs/structure": "1.0.0-canary.
|
|
50
|
-
"@cedarjs/vite": "1.0.0-canary.
|
|
51
|
-
"@cedarjs/web": "1.0.0-canary.
|
|
46
|
+
"@cedarjs/babel-config": "1.0.0-canary.12520",
|
|
47
|
+
"@cedarjs/project-config": "1.0.0-canary.12520",
|
|
48
|
+
"@cedarjs/router": "1.0.0-canary.12520",
|
|
49
|
+
"@cedarjs/structure": "1.0.0-canary.12520",
|
|
50
|
+
"@cedarjs/vite": "1.0.0-canary.12520",
|
|
51
|
+
"@cedarjs/web": "1.0.0-canary.12520",
|
|
52
52
|
"@rollup/plugin-alias": "5.1.1",
|
|
53
53
|
"@rollup/plugin-commonjs": "28.0.6",
|
|
54
54
|
"@rollup/plugin-node-resolve": "16.0.1",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"vite-node": "3.2.4"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@cedarjs/framework-tools": "1.0.0-canary.
|
|
70
|
+
"@cedarjs/framework-tools": "1.0.0-canary.12520",
|
|
71
71
|
"@types/mime-types": "2.1.4",
|
|
72
72
|
"@types/react": "^18.2.55",
|
|
73
73
|
"babel-plugin-tester": "11.0.4",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"react": "react",
|
|
86
86
|
"react-dom": "react-dom"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "71a6fc8c0a8a0496c039e9392008840fdf83aa8c"
|
|
89
89
|
}
|