@lovable.dev/vite-tanstack-config 2.5.4-rc.0 → 2.5.4-rc.1
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/index.cjs +14 -4
- package/dist/index.js +14 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -190,7 +190,6 @@ var DIAGNOSTIC_ERROR_FIELDS = [
|
|
|
190
190
|
"code",
|
|
191
191
|
"loc",
|
|
192
192
|
"frame",
|
|
193
|
-
"stack",
|
|
194
193
|
"cause"
|
|
195
194
|
];
|
|
196
195
|
function truncateDiagnosticString(value) {
|
|
@@ -286,9 +285,20 @@ function lovableBuildErrorDiagnostics() {
|
|
|
286
285
|
if (!error)
|
|
287
286
|
return;
|
|
288
287
|
const diagnostics = serializeDiagnosticValue(error, 0, /* @__PURE__ */ new WeakSet());
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
288
|
+
const output = `
|
|
289
|
+
[lovable-build-error-diagnostics]
|
|
290
|
+
${JSON.stringify(diagnostics)}
|
|
291
|
+
[/lovable-build-error-diagnostics]
|
|
292
|
+
`;
|
|
293
|
+
let written = false;
|
|
294
|
+
const write = () => {
|
|
295
|
+
if (written)
|
|
296
|
+
return;
|
|
297
|
+
written = true;
|
|
298
|
+
process.stderr.write(output);
|
|
299
|
+
};
|
|
300
|
+
setImmediate(write);
|
|
301
|
+
process.once("exit", write);
|
|
292
302
|
}
|
|
293
303
|
};
|
|
294
304
|
}
|
package/dist/index.js
CHANGED
|
@@ -156,7 +156,6 @@ var DIAGNOSTIC_ERROR_FIELDS = [
|
|
|
156
156
|
"code",
|
|
157
157
|
"loc",
|
|
158
158
|
"frame",
|
|
159
|
-
"stack",
|
|
160
159
|
"cause"
|
|
161
160
|
];
|
|
162
161
|
function truncateDiagnosticString(value) {
|
|
@@ -252,9 +251,20 @@ function lovableBuildErrorDiagnostics() {
|
|
|
252
251
|
if (!error)
|
|
253
252
|
return;
|
|
254
253
|
const diagnostics = serializeDiagnosticValue(error, 0, /* @__PURE__ */ new WeakSet());
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
254
|
+
const output = `
|
|
255
|
+
[lovable-build-error-diagnostics]
|
|
256
|
+
${JSON.stringify(diagnostics)}
|
|
257
|
+
[/lovable-build-error-diagnostics]
|
|
258
|
+
`;
|
|
259
|
+
let written = false;
|
|
260
|
+
const write = () => {
|
|
261
|
+
if (written)
|
|
262
|
+
return;
|
|
263
|
+
written = true;
|
|
264
|
+
process.stderr.write(output);
|
|
265
|
+
};
|
|
266
|
+
setImmediate(write);
|
|
267
|
+
process.once("exit", write);
|
|
258
268
|
}
|
|
259
269
|
};
|
|
260
270
|
}
|
package/package.json
CHANGED