@cedarjs/vite 5.0.0-canary.2422 → 5.0.0-canary.2423
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.
|
@@ -130,7 +130,7 @@ function cedarUniversalDeployPlugin(options = {}) {
|
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
132
|
buildStart() {
|
|
133
|
-
if (this.environment
|
|
133
|
+
if (this.environment.name !== "ssr") {
|
|
134
134
|
return;
|
|
135
135
|
}
|
|
136
136
|
for (const route of routes) {
|
|
@@ -145,7 +145,8 @@ function cedarUniversalDeployPlugin(options = {}) {
|
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
147
|
resolveId(id) {
|
|
148
|
-
|
|
148
|
+
const viteEnv = this.environment;
|
|
149
|
+
if (viteEnv.config.consumer === "client" || viteEnv.name === "api") {
|
|
149
150
|
return void 0;
|
|
150
151
|
}
|
|
151
152
|
if (id.startsWith(RESOLVED_CEDAR_FN_PREFIX)) {
|
|
@@ -157,7 +158,8 @@ function cedarUniversalDeployPlugin(options = {}) {
|
|
|
157
158
|
return void 0;
|
|
158
159
|
},
|
|
159
160
|
async load(id) {
|
|
160
|
-
|
|
161
|
+
const viteEnv = this.environment;
|
|
162
|
+
if (viteEnv.config.consumer === "client" || viteEnv.name === "api") {
|
|
161
163
|
return void 0;
|
|
162
164
|
}
|
|
163
165
|
if (id.startsWith(RESOLVED_CEDAR_FN_PREFIX)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite-plugin-cedar-universal-deploy.d.ts","sourceRoot":"","sources":["../../src/plugins/vite-plugin-cedar-universal-deploy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAMlC,MAAM,WAAW,iCAAiC;IAChD,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAuJD,wBAAgB,0BAA0B,CACxC,OAAO,GAAE,iCAAsC,GAC9C,MAAM,
|
|
1
|
+
{"version":3,"file":"vite-plugin-cedar-universal-deploy.d.ts","sourceRoot":"","sources":["../../src/plugins/vite-plugin-cedar-universal-deploy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAMlC,MAAM,WAAW,iCAAiC;IAChD,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAuJD,wBAAgB,0BAA0B,CACxC,OAAO,GAAE,iCAAsC,GAC9C,MAAM,CA0HR"}
|
|
@@ -97,7 +97,7 @@ function cedarUniversalDeployPlugin(options = {}) {
|
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
buildStart() {
|
|
100
|
-
if (this.environment
|
|
100
|
+
if (this.environment.name !== "ssr") {
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
103
103
|
for (const route of routes) {
|
|
@@ -112,7 +112,8 @@ function cedarUniversalDeployPlugin(options = {}) {
|
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
114
|
resolveId(id) {
|
|
115
|
-
|
|
115
|
+
const viteEnv = this.environment;
|
|
116
|
+
if (viteEnv.config.consumer === "client" || viteEnv.name === "api") {
|
|
116
117
|
return void 0;
|
|
117
118
|
}
|
|
118
119
|
if (id.startsWith(RESOLVED_CEDAR_FN_PREFIX)) {
|
|
@@ -124,7 +125,8 @@ function cedarUniversalDeployPlugin(options = {}) {
|
|
|
124
125
|
return void 0;
|
|
125
126
|
},
|
|
126
127
|
async load(id) {
|
|
127
|
-
|
|
128
|
+
const viteEnv = this.environment;
|
|
129
|
+
if (viteEnv.config.consumer === "client" || viteEnv.name === "api") {
|
|
128
130
|
return void 0;
|
|
129
131
|
}
|
|
130
132
|
if (id.startsWith(RESOLVED_CEDAR_FN_PREFIX)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/vite",
|
|
3
|
-
"version": "5.0.0-canary.
|
|
3
|
+
"version": "5.0.0-canary.2423",
|
|
4
4
|
"description": "Vite configuration package for CedarJS",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -69,17 +69,17 @@
|
|
|
69
69
|
"@babel/generator": "7.29.1",
|
|
70
70
|
"@babel/parser": "7.29.3",
|
|
71
71
|
"@babel/traverse": "7.29.0",
|
|
72
|
-
"@cedarjs/api": "5.0.0-canary.
|
|
73
|
-
"@cedarjs/auth": "5.0.0-canary.
|
|
74
|
-
"@cedarjs/babel-config": "5.0.0-canary.
|
|
75
|
-
"@cedarjs/context": "5.0.0-canary.
|
|
76
|
-
"@cedarjs/cookie-jar": "5.0.0-canary.
|
|
77
|
-
"@cedarjs/graphql-server": "5.0.0-canary.
|
|
78
|
-
"@cedarjs/internal": "5.0.0-canary.
|
|
79
|
-
"@cedarjs/project-config": "5.0.0-canary.
|
|
80
|
-
"@cedarjs/server-store": "5.0.0-canary.
|
|
81
|
-
"@cedarjs/testing": "5.0.0-canary.
|
|
82
|
-
"@cedarjs/web": "5.0.0-canary.
|
|
72
|
+
"@cedarjs/api": "5.0.0-canary.2423",
|
|
73
|
+
"@cedarjs/auth": "5.0.0-canary.2423",
|
|
74
|
+
"@cedarjs/babel-config": "5.0.0-canary.2423",
|
|
75
|
+
"@cedarjs/context": "5.0.0-canary.2423",
|
|
76
|
+
"@cedarjs/cookie-jar": "5.0.0-canary.2423",
|
|
77
|
+
"@cedarjs/graphql-server": "5.0.0-canary.2423",
|
|
78
|
+
"@cedarjs/internal": "5.0.0-canary.2423",
|
|
79
|
+
"@cedarjs/project-config": "5.0.0-canary.2423",
|
|
80
|
+
"@cedarjs/server-store": "5.0.0-canary.2423",
|
|
81
|
+
"@cedarjs/testing": "5.0.0-canary.2423",
|
|
82
|
+
"@cedarjs/web": "5.0.0-canary.2423",
|
|
83
83
|
"@fastify/url-data": "6.0.3",
|
|
84
84
|
"@swc/core": "1.15.33",
|
|
85
85
|
"@universal-deploy/store": "^0.2.1",
|