@lovable.dev/vite-tanstack-config 2.26.0 → 2.26.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/README.md CHANGED
@@ -13,10 +13,6 @@ 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
-
20
16
  ## Build exit watchdog
21
17
 
22
18
  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.26.0";
108
+ var version = "2.26.1";
109
109
  //#endregion
110
110
  //#region src/logging.ts
111
111
  const PACKAGE_NAME = "@lovable.dev/vite-tanstack-config";
@@ -1823,7 +1823,6 @@ function defineConfig(configOrOptions = {}) {
1823
1823
  ...userNitroOpts.cloudflare
1824
1824
  };
1825
1825
  }
1826
- nitroOpts.minify = process.env.LOVABLE_SERVER_MINIFY !== "0";
1827
1826
  } 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\" }`.");
1828
1827
  const nitroDirs = prerenderEnabled || isSandbox ? prerenderShimDirs(options.vite, nitroOpts) : void 0;
1829
1828
  internalPlugins.push(nitro(nitroOpts));
package/dist/index.d.cts CHANGED
@@ -57,8 +57,7 @@ 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 and the server bundle is minified unless
61
- * `LOVABLE_SERVER_MINIFY=0`; overrides here apply only outside it.
60
+ * the preset and output layout; overrides here apply only outside it.
62
61
  *
63
62
  * The option surface is narrow on purpose — Nitro v3 is still pre-RC, so
64
63
  * we only expose stable build-time knobs to reduce churn if
package/dist/index.d.ts CHANGED
@@ -57,8 +57,7 @@ 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 and the server bundle is minified unless
61
- * `LOVABLE_SERVER_MINIFY=0`; overrides here apply only outside it.
60
+ * the preset and output layout; overrides here apply only outside it.
62
61
  *
63
62
  * The option surface is narrow on purpose — Nitro v3 is still pre-RC, so
64
63
  * 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.26.0";
84
+ var version = "2.26.1";
85
85
  //#endregion
86
86
  //#region src/logging.ts
87
87
  const PACKAGE_NAME = "@lovable.dev/vite-tanstack-config";
@@ -1799,7 +1799,6 @@ function defineConfig(configOrOptions = {}) {
1799
1799
  ...userNitroOpts.cloudflare
1800
1800
  };
1801
1801
  }
1802
- nitroOpts.minify = process.env.LOVABLE_SERVER_MINIFY !== "0";
1803
1802
  } 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\" }`.");
1804
1803
  const nitroDirs = prerenderEnabled || isSandbox ? prerenderShimDirs(options.vite, nitroOpts) : void 0;
1805
1804
  internalPlugins.push(nitro(nitroOpts));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovable.dev/vite-tanstack-config",
3
- "version": "2.26.0",
3
+ "version": "2.26.1",
4
4
  "description": "Vite config wrapper for Lovable TanStack Start projects",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",