@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 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
- console.error("\n[lovable-build-error-diagnostics]");
290
- console.error(JSON.stringify(diagnostics, null, 2));
291
- console.error("[/lovable-build-error-diagnostics]");
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
- console.error("\n[lovable-build-error-diagnostics]");
256
- console.error(JSON.stringify(diagnostics, null, 2));
257
- console.error("[/lovable-build-error-diagnostics]");
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovable.dev/vite-tanstack-config",
3
- "version": "2.5.4-rc.0",
3
+ "version": "2.5.4-rc.1",
4
4
  "description": "Vite config wrapper for Lovable TanStack Start projects",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",