@cedarjs/vite 5.0.0-canary.2430 → 5.0.0-canary.2432
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 +35 -9
- package/dist/cjs/buildApp.js +35 -9
- package/package.json +12 -12
package/dist/buildApp.d.ts.map
CHANGED
|
@@ -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,
|
|
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,iBA4N3B"}
|
package/dist/buildApp.js
CHANGED
|
@@ -65,15 +65,6 @@ async function buildCedarApp({
|
|
|
65
65
|
return true;
|
|
66
66
|
}
|
|
67
67
|
return false;
|
|
68
|
-
},
|
|
69
|
-
onwarn(warning, warn) {
|
|
70
|
-
if (warning.code === "EVAL" && warning.id?.includes("@prisma/internals")) {
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
if (warning.code === "INVALID_ANNOTATION" && warning.id?.includes("graphql-scalars")) {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
warn(warning);
|
|
77
68
|
}
|
|
78
69
|
}
|
|
79
70
|
}
|
|
@@ -89,6 +80,41 @@ async function buildCedarApp({
|
|
|
89
80
|
)
|
|
90
81
|
) : {};
|
|
91
82
|
const plugins = [
|
|
83
|
+
// Suppress noisy warnings from third-party dependencies across all
|
|
84
|
+
// environments by injecting onwarn into every environment's rollupOptions.
|
|
85
|
+
{
|
|
86
|
+
name: "cedar-suppress-third-party-warnings",
|
|
87
|
+
configResolved(config) {
|
|
88
|
+
function onwarn(warning, warn) {
|
|
89
|
+
if (warning.code === "EVAL" && warning.id?.includes("@prisma/internals")) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
if (warning.code === "INVALID_ANNOTATION" && warning.id?.includes("graphql-scalars")) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
warn(warning);
|
|
96
|
+
}
|
|
97
|
+
for (const env of Object.values(config.environments ?? {})) {
|
|
98
|
+
env.build.rollupOptions ??= {};
|
|
99
|
+
const existingOnwarn = env.build.rollupOptions.onwarn;
|
|
100
|
+
env.build.rollupOptions.onwarn = existingOnwarn ? (warning, warn) => {
|
|
101
|
+
onwarn(warning, (w) => existingOnwarn(w, warn));
|
|
102
|
+
} : onwarn;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
// Resolve bare-specifier dynamic imports from node_modules as external
|
|
107
|
+
// before Rollup attempts resolution, avoiding UNRESOLVED_IMPORT warnings
|
|
108
|
+
// for optional peer dependencies (e.g. @simplewebauthn/server).
|
|
109
|
+
{
|
|
110
|
+
name: "cedar-optional-peer-deps",
|
|
111
|
+
resolveDynamicImport(specifier, importer) {
|
|
112
|
+
if (typeof specifier === "string" && !specifier.startsWith(".") && !specifier.startsWith("/") && importer?.includes("node_modules")) {
|
|
113
|
+
return { id: specifier, external: true };
|
|
114
|
+
}
|
|
115
|
+
return null;
|
|
116
|
+
}
|
|
117
|
+
},
|
|
92
118
|
{
|
|
93
119
|
name: "cedar-build-app-cleanup",
|
|
94
120
|
configResolved(config) {
|
package/dist/cjs/buildApp.js
CHANGED
|
@@ -95,15 +95,6 @@ async function buildCedarApp({
|
|
|
95
95
|
return true;
|
|
96
96
|
}
|
|
97
97
|
return false;
|
|
98
|
-
},
|
|
99
|
-
onwarn(warning, warn) {
|
|
100
|
-
if (warning.code === "EVAL" && warning.id?.includes("@prisma/internals")) {
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
if (warning.code === "INVALID_ANNOTATION" && warning.id?.includes("graphql-scalars")) {
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
warn(warning);
|
|
107
98
|
}
|
|
108
99
|
}
|
|
109
100
|
}
|
|
@@ -119,6 +110,41 @@ async function buildCedarApp({
|
|
|
119
110
|
)
|
|
120
111
|
) : {};
|
|
121
112
|
const plugins = [
|
|
113
|
+
// Suppress noisy warnings from third-party dependencies across all
|
|
114
|
+
// environments by injecting onwarn into every environment's rollupOptions.
|
|
115
|
+
{
|
|
116
|
+
name: "cedar-suppress-third-party-warnings",
|
|
117
|
+
configResolved(config) {
|
|
118
|
+
function onwarn(warning, warn) {
|
|
119
|
+
if (warning.code === "EVAL" && warning.id?.includes("@prisma/internals")) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
if (warning.code === "INVALID_ANNOTATION" && warning.id?.includes("graphql-scalars")) {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
warn(warning);
|
|
126
|
+
}
|
|
127
|
+
for (const env of Object.values(config.environments ?? {})) {
|
|
128
|
+
env.build.rollupOptions ??= {};
|
|
129
|
+
const existingOnwarn = env.build.rollupOptions.onwarn;
|
|
130
|
+
env.build.rollupOptions.onwarn = existingOnwarn ? (warning, warn) => {
|
|
131
|
+
onwarn(warning, (w) => existingOnwarn(w, warn));
|
|
132
|
+
} : onwarn;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
// Resolve bare-specifier dynamic imports from node_modules as external
|
|
137
|
+
// before Rollup attempts resolution, avoiding UNRESOLVED_IMPORT warnings
|
|
138
|
+
// for optional peer dependencies (e.g. @simplewebauthn/server).
|
|
139
|
+
{
|
|
140
|
+
name: "cedar-optional-peer-deps",
|
|
141
|
+
resolveDynamicImport(specifier, importer) {
|
|
142
|
+
if (typeof specifier === "string" && !specifier.startsWith(".") && !specifier.startsWith("/") && importer?.includes("node_modules")) {
|
|
143
|
+
return { id: specifier, external: true };
|
|
144
|
+
}
|
|
145
|
+
return null;
|
|
146
|
+
}
|
|
147
|
+
},
|
|
122
148
|
{
|
|
123
149
|
name: "cedar-build-app-cleanup",
|
|
124
150
|
configResolved(config) {
|
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.2432",
|
|
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.2432",
|
|
73
|
+
"@cedarjs/auth": "5.0.0-canary.2432",
|
|
74
|
+
"@cedarjs/babel-config": "5.0.0-canary.2432",
|
|
75
|
+
"@cedarjs/context": "5.0.0-canary.2432",
|
|
76
|
+
"@cedarjs/cookie-jar": "5.0.0-canary.2432",
|
|
77
|
+
"@cedarjs/graphql-server": "5.0.0-canary.2432",
|
|
78
|
+
"@cedarjs/internal": "5.0.0-canary.2432",
|
|
79
|
+
"@cedarjs/project-config": "5.0.0-canary.2432",
|
|
80
|
+
"@cedarjs/server-store": "5.0.0-canary.2432",
|
|
81
|
+
"@cedarjs/testing": "5.0.0-canary.2432",
|
|
82
|
+
"@cedarjs/web": "5.0.0-canary.2432",
|
|
83
83
|
"@fastify/url-data": "6.0.3",
|
|
84
84
|
"@swc/core": "1.15.33",
|
|
85
85
|
"@universal-deploy/store": "^0.2.1",
|