@lovable.dev/vite-tanstack-config 2.7.2 → 2.7.3-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 +34 -23
- package/dist/index.js +34 -23
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -418,33 +418,44 @@ function stringifyDiagnosticPayload(diagnostics) {
|
|
|
418
418
|
});
|
|
419
419
|
}
|
|
420
420
|
function lovableBuildErrorDiagnostics() {
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
const output = `
|
|
421
|
+
let emitted = false;
|
|
422
|
+
const emitDiagnostics = (error) => {
|
|
423
|
+
if (!error || emitted)
|
|
424
|
+
return;
|
|
425
|
+
emitted = true;
|
|
426
|
+
try {
|
|
427
|
+
const diagnostics = serializeDiagnosticValue(error, 0, /* @__PURE__ */ new WeakSet());
|
|
428
|
+
const output = `
|
|
430
429
|
[lovable-build-error-diagnostics]
|
|
431
430
|
${stringifyDiagnosticPayload(diagnostics)}
|
|
432
431
|
[/lovable-build-error-diagnostics]
|
|
433
432
|
`;
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
433
|
+
let written = false;
|
|
434
|
+
const write = () => {
|
|
435
|
+
if (written)
|
|
436
|
+
return;
|
|
437
|
+
written = true;
|
|
438
|
+
try {
|
|
439
|
+
process.stderr.write(output);
|
|
440
|
+
} catch {
|
|
441
|
+
}
|
|
442
|
+
};
|
|
443
|
+
setImmediate(write);
|
|
444
|
+
process.once("exit", write);
|
|
445
|
+
} catch {
|
|
446
|
+
}
|
|
447
|
+
};
|
|
448
|
+
return {
|
|
449
|
+
name: BUILD_DIAGNOSTICS_PLUGIN_NAME,
|
|
450
|
+
apply: "build",
|
|
451
|
+
buildEnd(error) {
|
|
452
|
+
emitDiagnostics(error);
|
|
453
|
+
},
|
|
454
|
+
// Output-phase errors (chunk render/generate, where rolldown raises its
|
|
455
|
+
// aggregate binding errors) arrive after a clean buildEnd; only renderError
|
|
456
|
+
// sees them.
|
|
457
|
+
renderError(error) {
|
|
458
|
+
emitDiagnostics(error);
|
|
448
459
|
}
|
|
449
460
|
};
|
|
450
461
|
}
|
package/dist/index.js
CHANGED
|
@@ -383,33 +383,44 @@ function stringifyDiagnosticPayload(diagnostics) {
|
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
function lovableBuildErrorDiagnostics() {
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
const output = `
|
|
386
|
+
let emitted = false;
|
|
387
|
+
const emitDiagnostics = (error) => {
|
|
388
|
+
if (!error || emitted)
|
|
389
|
+
return;
|
|
390
|
+
emitted = true;
|
|
391
|
+
try {
|
|
392
|
+
const diagnostics = serializeDiagnosticValue(error, 0, /* @__PURE__ */ new WeakSet());
|
|
393
|
+
const output = `
|
|
395
394
|
[lovable-build-error-diagnostics]
|
|
396
395
|
${stringifyDiagnosticPayload(diagnostics)}
|
|
397
396
|
[/lovable-build-error-diagnostics]
|
|
398
397
|
`;
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
398
|
+
let written = false;
|
|
399
|
+
const write = () => {
|
|
400
|
+
if (written)
|
|
401
|
+
return;
|
|
402
|
+
written = true;
|
|
403
|
+
try {
|
|
404
|
+
process.stderr.write(output);
|
|
405
|
+
} catch {
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
setImmediate(write);
|
|
409
|
+
process.once("exit", write);
|
|
410
|
+
} catch {
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
return {
|
|
414
|
+
name: BUILD_DIAGNOSTICS_PLUGIN_NAME,
|
|
415
|
+
apply: "build",
|
|
416
|
+
buildEnd(error) {
|
|
417
|
+
emitDiagnostics(error);
|
|
418
|
+
},
|
|
419
|
+
// Output-phase errors (chunk render/generate, where rolldown raises its
|
|
420
|
+
// aggregate binding errors) arrive after a clean buildEnd; only renderError
|
|
421
|
+
// sees them.
|
|
422
|
+
renderError(error) {
|
|
423
|
+
emitDiagnostics(error);
|
|
413
424
|
}
|
|
414
425
|
};
|
|
415
426
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovable.dev/vite-tanstack-config",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.3-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",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"lightningcss": "^1.30.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"vite": ">=5.0.0 <9.0.0",
|
|
27
26
|
"@tailwindcss/vite": ">=4.0.0",
|
|
28
|
-
"vite-tsconfig-paths": ">=6.0.0",
|
|
29
|
-
"nitro": ">=3.0.260603-beta",
|
|
30
27
|
"@tanstack/react-start": ">=1.100.0",
|
|
31
|
-
"@vitejs/plugin-react": ">=4.0.0"
|
|
28
|
+
"@vitejs/plugin-react": ">=4.0.0",
|
|
29
|
+
"nitro": ">=3.0.260603-beta",
|
|
30
|
+
"vite": ">=5.0.0 <9.0.0",
|
|
31
|
+
"vite-tsconfig-paths": ">=6.0.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependenciesMeta": {
|
|
34
34
|
"nitro": {
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"nitro": "3.0.260603-beta",
|
|
40
|
-
"@tanstack/react-start": "^1.167.50",
|
|
41
|
-
"@vitejs/plugin-react": "^5.2.0",
|
|
42
39
|
"@tailwindcss/vite": "^4.3.0",
|
|
40
|
+
"@tanstack/react-start": "^1.167.50",
|
|
43
41
|
"@types/node": "22.13.13",
|
|
42
|
+
"@vitejs/plugin-react": "^5.2.0",
|
|
43
|
+
"nitro": "3.0.260603-beta",
|
|
44
44
|
"rimraf": "^5.0.0",
|
|
45
45
|
"tsup": "^7.2.0",
|
|
46
46
|
"typescript": "^5.9.3",
|