@cedarjs/prerender 7.0.0-canary.2984 → 7.0.0-canary.2985
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/build-and-import/buildAndImport.d.ts.map +1 -1
- package/dist/build-and-import/buildAndImport.js +2 -9
- package/dist/build-and-import/rollupPlugins/rollup-plugin-cedarjs-routes-auto-loader.d.ts.map +1 -1
- package/dist/cjs/build-and-import/buildAndImport.js +1 -8
- package/package.json +10 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildAndImport.d.ts","sourceRoot":"","sources":["../../src/build-and-import/buildAndImport.ts"],"names":[],"mappings":"AAqCA,UAAU,OAAO;IACf,yCAAyC;IACzC,QAAQ,EAAE,MAAM,CAAA;IAEhB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAChC;AAED,wBAAsB,cAAc,CAClC,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"buildAndImport.d.ts","sourceRoot":"","sources":["../../src/build-and-import/buildAndImport.ts"],"names":[],"mappings":"AAqCA,UAAU,OAAO;IACf,yCAAyC;IACzC,QAAQ,EAAE,MAAM,CAAA;IAEhB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAChC;AAED,wBAAsB,cAAc,CAClC,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC,CA4IlD"}
|
|
@@ -7,7 +7,7 @@ import replace from "@rollup/plugin-replace";
|
|
|
7
7
|
import { rollup } from "rollup";
|
|
8
8
|
import { swc } from "rollup-plugin-swc3";
|
|
9
9
|
import unimportPlugin from "unimport/unplugin";
|
|
10
|
-
import { getConfig, getPaths
|
|
10
|
+
import { getConfig, getPaths } from "@cedarjs/project-config";
|
|
11
11
|
import {
|
|
12
12
|
getPathsFromTypeScriptConfig,
|
|
13
13
|
parseTypeScriptConfigFiles
|
|
@@ -42,7 +42,6 @@ async function buildAndImport(options) {
|
|
|
42
42
|
if (!fs.existsSync(outDir)) {
|
|
43
43
|
fs.mkdirSync(outDir, { recursive: true });
|
|
44
44
|
}
|
|
45
|
-
const isEsm = projectIsEsm();
|
|
46
45
|
const build = await rollup({
|
|
47
46
|
input: [options.filepath],
|
|
48
47
|
output: {
|
|
@@ -114,16 +113,10 @@ async function buildAndImport(options) {
|
|
|
114
113
|
from: "react"
|
|
115
114
|
},
|
|
116
115
|
// import { gql } from 'graphql-tag'
|
|
117
|
-
!useTrustedDocumentsGqlTag &&
|
|
116
|
+
!useTrustedDocumentsGqlTag && {
|
|
118
117
|
name: "gql",
|
|
119
118
|
from: "graphql-tag"
|
|
120
119
|
},
|
|
121
|
-
// import gql from 'graphql-tag'
|
|
122
|
-
!useTrustedDocumentsGqlTag && !isEsm && {
|
|
123
|
-
name: "default",
|
|
124
|
-
as: "gql",
|
|
125
|
-
from: "graphql-tag"
|
|
126
|
-
},
|
|
127
120
|
// import { gql } from 'src/graphql/gql'
|
|
128
121
|
useTrustedDocumentsGqlTag && {
|
|
129
122
|
name: "gql",
|
package/dist/build-and-import/rollupPlugins/rollup-plugin-cedarjs-routes-auto-loader.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollup-plugin-cedarjs-routes-auto-loader.d.ts","sourceRoot":"","sources":["../../../src/build-and-import/rollupPlugins/rollup-plugin-cedarjs-routes-auto-loader.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAYpC,MAAM,WAAW,aAAa;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;
|
|
1
|
+
{"version":3,"file":"rollup-plugin-cedarjs-routes-auto-loader.d.ts","sourceRoot":"","sources":["../../../src/build-and-import/rollupPlugins/rollup-plugin-cedarjs-routes-auto-loader.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAYpC,MAAM,WAAW,aAAa;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAoBD,wBAAgB,6BAA6B,IAAI,MAAM,CAoJtD"}
|
|
@@ -72,7 +72,6 @@ async function buildAndImport(options) {
|
|
|
72
72
|
if (!import_node_fs.default.existsSync(outDir)) {
|
|
73
73
|
import_node_fs.default.mkdirSync(outDir, { recursive: true });
|
|
74
74
|
}
|
|
75
|
-
const isEsm = (0, import_project_config.projectIsEsm)();
|
|
76
75
|
const build = await (0, import_rollup.rollup)({
|
|
77
76
|
input: [options.filepath],
|
|
78
77
|
output: {
|
|
@@ -144,16 +143,10 @@ async function buildAndImport(options) {
|
|
|
144
143
|
from: "react"
|
|
145
144
|
},
|
|
146
145
|
// import { gql } from 'graphql-tag'
|
|
147
|
-
!useTrustedDocumentsGqlTag &&
|
|
146
|
+
!useTrustedDocumentsGqlTag && {
|
|
148
147
|
name: "gql",
|
|
149
148
|
from: "graphql-tag"
|
|
150
149
|
},
|
|
151
|
-
// import gql from 'graphql-tag'
|
|
152
|
-
!useTrustedDocumentsGqlTag && !isEsm && {
|
|
153
|
-
name: "default",
|
|
154
|
-
as: "gql",
|
|
155
|
-
from: "graphql-tag"
|
|
156
|
-
},
|
|
157
150
|
// import { gql } from 'src/graphql/gql'
|
|
158
151
|
useTrustedDocumentsGqlTag && {
|
|
159
152
|
name: "gql",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/prerender",
|
|
3
|
-
"version": "7.0.0-canary.
|
|
3
|
+
"version": "7.0.0-canary.2985",
|
|
4
4
|
"description": "CedarJS prerender",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,10 +20,6 @@
|
|
|
20
20
|
"default": "./dist/cjs/runPrerender.js"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
-
"./cjs": {
|
|
24
|
-
"types": "./dist/cjs/runPrerender.d.ts",
|
|
25
|
-
"default": "./dist/cjs/runPrerender.js"
|
|
26
|
-
},
|
|
27
23
|
"./browserUtils": {
|
|
28
24
|
"import": {
|
|
29
25
|
"types": "./dist/browserUtils/index.d.ts",
|
|
@@ -43,10 +39,6 @@
|
|
|
43
39
|
"types": "./dist/cjs/detection/detection.d.ts",
|
|
44
40
|
"default": "./dist/cjs/detection/detection.js"
|
|
45
41
|
}
|
|
46
|
-
},
|
|
47
|
-
"./cjs/detection": {
|
|
48
|
-
"types": "./dist/cjs/detection/detection.d.ts",
|
|
49
|
-
"default": "./dist/cjs/detection/detection.js"
|
|
50
42
|
}
|
|
51
43
|
},
|
|
52
44
|
"main": "dist/cjs/index.js",
|
|
@@ -70,10 +62,10 @@
|
|
|
70
62
|
"@babel/generator": "7.29.8",
|
|
71
63
|
"@babel/parser": "7.29.8",
|
|
72
64
|
"@babel/traverse": "7.29.8",
|
|
73
|
-
"@cedarjs/babel-config": "7.0.0-canary.
|
|
74
|
-
"@cedarjs/project-config": "7.0.0-canary.
|
|
75
|
-
"@cedarjs/structure": "7.0.0-canary.
|
|
76
|
-
"@cedarjs/vite": "7.0.0-canary.
|
|
65
|
+
"@cedarjs/babel-config": "7.0.0-canary.2985",
|
|
66
|
+
"@cedarjs/project-config": "7.0.0-canary.2985",
|
|
67
|
+
"@cedarjs/structure": "7.0.0-canary.2985",
|
|
68
|
+
"@cedarjs/vite": "7.0.0-canary.2985",
|
|
77
69
|
"@rollup/plugin-alias": "5.1.1",
|
|
78
70
|
"@rollup/plugin-commonjs": "28.0.9",
|
|
79
71
|
"@rollup/plugin-node-resolve": "16.0.3",
|
|
@@ -91,9 +83,9 @@
|
|
|
91
83
|
"vite": "7.3.6"
|
|
92
84
|
},
|
|
93
85
|
"devDependencies": {
|
|
94
|
-
"@cedarjs/framework-tools": "7.0.0-canary.
|
|
95
|
-
"@cedarjs/router": "7.0.0-canary.
|
|
96
|
-
"@cedarjs/web": "7.0.0-canary.
|
|
86
|
+
"@cedarjs/framework-tools": "7.0.0-canary.2985",
|
|
87
|
+
"@cedarjs/router": "7.0.0-canary.2985",
|
|
88
|
+
"@cedarjs/web": "7.0.0-canary.2985",
|
|
97
89
|
"@types/mime-types": "2.1.4",
|
|
98
90
|
"@types/react": "^19.2.0",
|
|
99
91
|
"babel-plugin-tester": "11.0.4",
|
|
@@ -103,8 +95,8 @@
|
|
|
103
95
|
"vitest": "4.1.10"
|
|
104
96
|
},
|
|
105
97
|
"peerDependencies": {
|
|
106
|
-
"@cedarjs/router": "7.0.0-canary.
|
|
107
|
-
"@cedarjs/web": "7.0.0-canary.
|
|
98
|
+
"@cedarjs/router": "7.0.0-canary.2985",
|
|
99
|
+
"@cedarjs/web": "7.0.0-canary.2985",
|
|
108
100
|
"react": "19.2.3",
|
|
109
101
|
"react-dom": "19.2.3"
|
|
110
102
|
},
|