@lovable.dev/vite-tanstack-config 2.25.3 → 2.26.0
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/README.md +4 -0
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,6 +13,10 @@ Vite config wrapper for Lovable TanStack Start projects.
|
|
|
13
13
|
|
|
14
14
|
Apps can pass through Vite options and adjust the React, TanStack Start, Nitro, HMR gate, and error-logging behavior when they need to.
|
|
15
15
|
|
|
16
|
+
## Server bundle
|
|
17
|
+
|
|
18
|
+
Inside a Lovable build the Nitro server bundle is minified, for both the Cloudflare and the portable fetch-bundle targets (Nitro's Cloudflare preset leaves it unminified). The `LOVABLE_SERVER_MINIFY=0` environment variable restores the preset default. Outside a Lovable build the preset decides.
|
|
19
|
+
|
|
16
20
|
## Build exit watchdog
|
|
17
21
|
|
|
18
22
|
Inside a Lovable build with prerender enabled, the build process is forced to exit if it is still alive 60 seconds after the last build hook has returned, and a `[lovable-build-exit-report]` block naming the open handle types is written to stderr. Adjust it with `defineConfig({ buildExitWatchdog: { graceMs, enabled } })`; the grace is clamped to 5 s–10 min. The `LOVABLE_PRERENDER_EXIT_GRACE_MS` and `LOVABLE_PRERENDER_EXIT_WATCHDOG=off` environment variables override the config.
|
package/dist/index.cjs
CHANGED
|
@@ -105,7 +105,7 @@ function lovableAssetsProxyPlugin() {
|
|
|
105
105
|
//#endregion
|
|
106
106
|
//#region package.json
|
|
107
107
|
var name = "@lovable.dev/vite-tanstack-config";
|
|
108
|
-
var version = "2.
|
|
108
|
+
var version = "2.26.0";
|
|
109
109
|
//#endregion
|
|
110
110
|
//#region src/logging.ts
|
|
111
111
|
const PACKAGE_NAME = "@lovable.dev/vite-tanstack-config";
|
|
@@ -1823,6 +1823,7 @@ function defineConfig(configOrOptions = {}) {
|
|
|
1823
1823
|
...userNitroOpts.cloudflare
|
|
1824
1824
|
};
|
|
1825
1825
|
}
|
|
1826
|
+
nitroOpts.minify = process.env.LOVABLE_SERVER_MINIFY !== "0";
|
|
1826
1827
|
} else if (!nitroOpts.preset && !await nitroSupportsDefaultPreset()) logWarning("The installed `nitro` predates the `defaultPreset` option (3.0.260603-beta), so the Cloudflare fallback is ignored and a zero-config build may target Node instead. Upgrade nitro to >=3.0.260603-beta, or set an explicit `nitro: { preset: \"cloudflare-module\" }`.");
|
|
1827
1828
|
const nitroDirs = prerenderEnabled || isSandbox ? prerenderShimDirs(options.vite, nitroOpts) : void 0;
|
|
1828
1829
|
internalPlugins.push(nitro(nitroOpts));
|
package/dist/index.d.cts
CHANGED
|
@@ -57,7 +57,8 @@ interface LovableViteTanstackOptions {
|
|
|
57
57
|
* - **`false`**: skip nitro entirely.
|
|
58
58
|
*
|
|
59
59
|
* Inside a Lovable build `LOVABLE_NITRO_PRESET` (Cloudflare by default) pins
|
|
60
|
-
* the preset and output layout
|
|
60
|
+
* the preset and output layout and the server bundle is minified unless
|
|
61
|
+
* `LOVABLE_SERVER_MINIFY=0`; overrides here apply only outside it.
|
|
61
62
|
*
|
|
62
63
|
* The option surface is narrow on purpose — Nitro v3 is still pre-RC, so
|
|
63
64
|
* we only expose stable build-time knobs to reduce churn if
|
package/dist/index.d.ts
CHANGED
|
@@ -57,7 +57,8 @@ interface LovableViteTanstackOptions {
|
|
|
57
57
|
* - **`false`**: skip nitro entirely.
|
|
58
58
|
*
|
|
59
59
|
* Inside a Lovable build `LOVABLE_NITRO_PRESET` (Cloudflare by default) pins
|
|
60
|
-
* the preset and output layout
|
|
60
|
+
* the preset and output layout and the server bundle is minified unless
|
|
61
|
+
* `LOVABLE_SERVER_MINIFY=0`; overrides here apply only outside it.
|
|
61
62
|
*
|
|
62
63
|
* The option surface is narrow on purpose — Nitro v3 is still pre-RC, so
|
|
63
64
|
* we only expose stable build-time knobs to reduce churn if
|
package/dist/index.js
CHANGED
|
@@ -81,7 +81,7 @@ function lovableAssetsProxyPlugin() {
|
|
|
81
81
|
//#endregion
|
|
82
82
|
//#region package.json
|
|
83
83
|
var name = "@lovable.dev/vite-tanstack-config";
|
|
84
|
-
var version = "2.
|
|
84
|
+
var version = "2.26.0";
|
|
85
85
|
//#endregion
|
|
86
86
|
//#region src/logging.ts
|
|
87
87
|
const PACKAGE_NAME = "@lovable.dev/vite-tanstack-config";
|
|
@@ -1799,6 +1799,7 @@ function defineConfig(configOrOptions = {}) {
|
|
|
1799
1799
|
...userNitroOpts.cloudflare
|
|
1800
1800
|
};
|
|
1801
1801
|
}
|
|
1802
|
+
nitroOpts.minify = process.env.LOVABLE_SERVER_MINIFY !== "0";
|
|
1802
1803
|
} else if (!nitroOpts.preset && !await nitroSupportsDefaultPreset()) logWarning("The installed `nitro` predates the `defaultPreset` option (3.0.260603-beta), so the Cloudflare fallback is ignored and a zero-config build may target Node instead. Upgrade nitro to >=3.0.260603-beta, or set an explicit `nitro: { preset: \"cloudflare-module\" }`.");
|
|
1803
1804
|
const nitroDirs = prerenderEnabled || isSandbox ? prerenderShimDirs(options.vite, nitroOpts) : void 0;
|
|
1804
1805
|
internalPlugins.push(nitro(nitroOpts));
|