@cedarjs/vite 6.0.0-canary.2647 → 6.0.0-canary.2652
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 +4 -2
- package/dist/cjs/buildApp.js +4 -2
- 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":"AAsDA,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,iBAkW3B"}
|
package/dist/buildApp.js
CHANGED
|
@@ -26,7 +26,7 @@ import { cedarOtelWrappingPlugin } from "./plugins/vite-plugin-cedar-otel-wrappi
|
|
|
26
26
|
import { cedarjsJobPathInjectorPlugin } from "./plugins/vite-plugin-cedarjs-job-path-injector.js";
|
|
27
27
|
import { handlerAlsWrappingPlugin } from "./plugins/vite-plugin-handler-als-wrapping.js";
|
|
28
28
|
function resolveWithExtensions(id) {
|
|
29
|
-
if (fs.existsSync(id)) {
|
|
29
|
+
if (fs.existsSync(id) && fs.statSync(id).isFile()) {
|
|
30
30
|
return id;
|
|
31
31
|
}
|
|
32
32
|
for (const ext of [".js", ".ts", ".jsx", ".tsx", ".mjs", ".mts"]) {
|
|
@@ -232,7 +232,9 @@ async function buildCedarApp({
|
|
|
232
232
|
name: "cedar-api-src-redirect",
|
|
233
233
|
enforce: "pre",
|
|
234
234
|
resolveId(id, importer) {
|
|
235
|
-
|
|
235
|
+
const normalizedImporter = importer && normalizePath(importer);
|
|
236
|
+
const normalizedApiSrc = normalizePath(cedarPaths.api.src);
|
|
237
|
+
if (!normalizedImporter?.startsWith(`${normalizedApiSrc}/`)) {
|
|
236
238
|
return null;
|
|
237
239
|
}
|
|
238
240
|
if (id.startsWith("src/")) {
|
package/dist/cjs/buildApp.js
CHANGED
|
@@ -56,7 +56,7 @@ const tsconfigPaths = (
|
|
|
56
56
|
import_vite_tsconfig_paths.default.default?.default || import_vite_tsconfig_paths.default.default || import_vite_tsconfig_paths.default
|
|
57
57
|
);
|
|
58
58
|
function resolveWithExtensions(id) {
|
|
59
|
-
if (import_node_fs.default.existsSync(id)) {
|
|
59
|
+
if (import_node_fs.default.existsSync(id) && import_node_fs.default.statSync(id).isFile()) {
|
|
60
60
|
return id;
|
|
61
61
|
}
|
|
62
62
|
for (const ext of [".js", ".ts", ".jsx", ".tsx", ".mjs", ".mts"]) {
|
|
@@ -262,7 +262,9 @@ async function buildCedarApp({
|
|
|
262
262
|
name: "cedar-api-src-redirect",
|
|
263
263
|
enforce: "pre",
|
|
264
264
|
resolveId(id, importer) {
|
|
265
|
-
|
|
265
|
+
const normalizedImporter = importer && (0, import_vite2.normalizePath)(importer);
|
|
266
|
+
const normalizedApiSrc = (0, import_vite2.normalizePath)(cedarPaths.api.src);
|
|
267
|
+
if (!normalizedImporter?.startsWith(`${normalizedApiSrc}/`)) {
|
|
266
268
|
return null;
|
|
267
269
|
}
|
|
268
270
|
if (id.startsWith("src/")) {
|
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.2652",
|
|
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.2652",
|
|
67
|
+
"@cedarjs/babel-config": "6.0.0-canary.2652",
|
|
68
|
+
"@cedarjs/context": "6.0.0-canary.2652",
|
|
69
|
+
"@cedarjs/cookie-jar": "6.0.0-canary.2652",
|
|
70
|
+
"@cedarjs/graphql-server": "6.0.0-canary.2652",
|
|
71
|
+
"@cedarjs/internal": "6.0.0-canary.2652",
|
|
72
|
+
"@cedarjs/project-config": "6.0.0-canary.2652",
|
|
73
|
+
"@cedarjs/server-store": "6.0.0-canary.2652",
|
|
74
|
+
"@cedarjs/testing": "6.0.0-canary.2652",
|
|
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.2652",
|
|
112
|
+
"@cedarjs/router": "6.0.0-canary.2652",
|
|
113
|
+
"@cedarjs/web": "6.0.0-canary.2652",
|
|
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",
|