@cedarjs/vite 5.0.0-canary.2433 → 5.0.0-canary.2435

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":"buildApp.d.ts","sourceRoot":"","sources":["../src/buildApp.ts"],"names":[],"mappings":"AA4BA,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CACrB;AAED;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CAAC,EAClC,OAAe,EACf,SAA0B,GAC3B,GAAE,oBAAyB,iBA0P3B"}
1
+ {"version":3,"file":"buildApp.d.ts","sourceRoot":"","sources":["../src/buildApp.ts"],"names":[],"mappings":"AA4BA,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CACrB;AAED;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CAAC,EAClC,OAAe,EACf,SAA0B,GAC3B,GAAE,oBAAyB,iBA2P3B"}
package/dist/buildApp.js CHANGED
@@ -109,7 +109,7 @@ async function buildCedarApp({
109
109
  {
110
110
  name: "cedar-optional-peer-deps",
111
111
  resolveDynamicImport(specifier, importer) {
112
- if (typeof specifier === "string" && !specifier.startsWith(".") && !specifier.startsWith("/") && importer?.includes("node_modules")) {
112
+ if (typeof specifier === "string" && !specifier.startsWith(".") && !specifier.startsWith("/") && importer?.includes("node_modules") && this.environment.config.consumer === "server") {
113
113
  return { id: specifier, external: true };
114
114
  }
115
115
  return null;
@@ -139,7 +139,7 @@ async function buildCedarApp({
139
139
  {
140
140
  name: "cedar-optional-peer-deps",
141
141
  resolveDynamicImport(specifier, importer) {
142
- if (typeof specifier === "string" && !specifier.startsWith(".") && !specifier.startsWith("/") && importer?.includes("node_modules")) {
142
+ if (typeof specifier === "string" && !specifier.startsWith(".") && !specifier.startsWith("/") && importer?.includes("node_modules") && this.environment.config.consumer === "server") {
143
143
  return { id: specifier, external: true };
144
144
  }
145
145
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/vite",
3
- "version": "5.0.0-canary.2433",
3
+ "version": "5.0.0-canary.2435",
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.2433",
73
- "@cedarjs/auth": "5.0.0-canary.2433",
74
- "@cedarjs/babel-config": "5.0.0-canary.2433",
75
- "@cedarjs/context": "5.0.0-canary.2433",
76
- "@cedarjs/cookie-jar": "5.0.0-canary.2433",
77
- "@cedarjs/graphql-server": "5.0.0-canary.2433",
78
- "@cedarjs/internal": "5.0.0-canary.2433",
79
- "@cedarjs/project-config": "5.0.0-canary.2433",
80
- "@cedarjs/server-store": "5.0.0-canary.2433",
81
- "@cedarjs/testing": "5.0.0-canary.2433",
82
- "@cedarjs/web": "5.0.0-canary.2433",
72
+ "@cedarjs/api": "5.0.0-canary.2435",
73
+ "@cedarjs/auth": "5.0.0-canary.2435",
74
+ "@cedarjs/babel-config": "5.0.0-canary.2435",
75
+ "@cedarjs/context": "5.0.0-canary.2435",
76
+ "@cedarjs/cookie-jar": "5.0.0-canary.2435",
77
+ "@cedarjs/graphql-server": "5.0.0-canary.2435",
78
+ "@cedarjs/internal": "5.0.0-canary.2435",
79
+ "@cedarjs/project-config": "5.0.0-canary.2435",
80
+ "@cedarjs/server-store": "5.0.0-canary.2435",
81
+ "@cedarjs/testing": "5.0.0-canary.2435",
82
+ "@cedarjs/web": "5.0.0-canary.2435",
83
83
  "@fastify/url-data": "6.0.3",
84
84
  "@swc/core": "1.15.33",
85
85
  "@universal-deploy/store": "^0.2.1",