@cedarjs/vite 5.0.0-canary.2408 → 5.0.0-canary.2410

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.
@@ -52,7 +52,12 @@ function getMergedConfig(cedarConfig, cedarPaths) {
52
52
  const defaultCedarViteConfig = {
53
53
  root: cedarPaths.web.base,
54
54
  resolve: {
55
- alias: workspaceAliases
55
+ alias: {
56
+ ...workspaceAliases,
57
+ // In test mode, register the virtual module alias so that
58
+ // MockProviders can resolve the user's Routes file
59
+ ...env.mode === "test" ? { "~__CEDAR__USER_ROUTES_FOR_MOCK": cedarPaths.web.routes } : {}
60
+ }
56
61
  },
57
62
  // @MARK: when we have these aliases, the warnings from the FE server go
58
63
  // away BUT, if you have imports like this:
@@ -1 +1 @@
1
- {"version":3,"file":"getMergedConfig.d.ts","sourceRoot":"","sources":["../../src/lib/getMergedConfig.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE9D,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAS5D;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,IAC5D,YAAY,cAAc,EAAE,KAAK,SAAS,KAAG,cAAc,CAqHpE"}
1
+ {"version":3,"file":"getMergedConfig.d.ts","sourceRoot":"","sources":["../../src/lib/getMergedConfig.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE9D,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAS5D;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,IAC5D,YAAY,cAAc,EAAE,KAAK,SAAS,KAAG,cAAc,CA4HpE"}
@@ -23,7 +23,12 @@ function getMergedConfig(cedarConfig, cedarPaths) {
23
23
  const defaultCedarViteConfig = {
24
24
  root: cedarPaths.web.base,
25
25
  resolve: {
26
- alias: workspaceAliases
26
+ alias: {
27
+ ...workspaceAliases,
28
+ // In test mode, register the virtual module alias so that
29
+ // MockProviders can resolve the user's Routes file
30
+ ...env.mode === "test" ? { "~__CEDAR__USER_ROUTES_FOR_MOCK": cedarPaths.web.routes } : {}
31
+ }
27
32
  },
28
33
  // @MARK: when we have these aliases, the warnings from the FE server go
29
34
  // away BUT, if you have imports like this:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/vite",
3
- "version": "5.0.0-canary.2408",
3
+ "version": "5.0.0-canary.2410",
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.2408",
73
- "@cedarjs/auth": "5.0.0-canary.2408",
74
- "@cedarjs/babel-config": "5.0.0-canary.2408",
75
- "@cedarjs/context": "5.0.0-canary.2408",
76
- "@cedarjs/cookie-jar": "5.0.0-canary.2408",
77
- "@cedarjs/graphql-server": "5.0.0-canary.2408",
78
- "@cedarjs/internal": "5.0.0-canary.2408",
79
- "@cedarjs/project-config": "5.0.0-canary.2408",
80
- "@cedarjs/server-store": "5.0.0-canary.2408",
81
- "@cedarjs/testing": "5.0.0-canary.2408",
82
- "@cedarjs/web": "5.0.0-canary.2408",
72
+ "@cedarjs/api": "5.0.0-canary.2410",
73
+ "@cedarjs/auth": "5.0.0-canary.2410",
74
+ "@cedarjs/babel-config": "5.0.0-canary.2410",
75
+ "@cedarjs/context": "5.0.0-canary.2410",
76
+ "@cedarjs/cookie-jar": "5.0.0-canary.2410",
77
+ "@cedarjs/graphql-server": "5.0.0-canary.2410",
78
+ "@cedarjs/internal": "5.0.0-canary.2410",
79
+ "@cedarjs/project-config": "5.0.0-canary.2410",
80
+ "@cedarjs/server-store": "5.0.0-canary.2410",
81
+ "@cedarjs/testing": "5.0.0-canary.2410",
82
+ "@cedarjs/web": "5.0.0-canary.2410",
83
83
  "@fastify/url-data": "6.0.3",
84
84
  "@swc/core": "1.15.33",
85
85
  "@universal-deploy/store": "^0.2.1",