@lovable.dev/vite-tanstack-config 2.0.0 → 2.1.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/dist/index.cjs CHANGED
@@ -322,7 +322,11 @@ function defineConfig(configOrOptions = {}) {
322
322
  publicDir: "dist/client",
323
323
  ...userNitroOpts.output
324
324
  };
325
- internalPlugins.push(nitro({ ...userNitroOpts, preset, output }));
325
+ const nitroOpts = { ...userNitroOpts, preset, output };
326
+ if (preset === "cloudflare-module") {
327
+ nitroOpts.cloudflare = { nodeCompat: true, deployConfig: true, ...userNitroOpts.cloudflare };
328
+ }
329
+ internalPlugins.push(nitro(nitroOpts));
326
330
  } catch {
327
331
  }
328
332
  }
package/dist/index.d.cts CHANGED
@@ -31,6 +31,10 @@ interface LovableViteTanstackOptions {
31
31
  publicDir?: string;
32
32
  serverDir?: string;
33
33
  };
34
+ cloudflare?: {
35
+ nodeCompat?: boolean;
36
+ deployConfig?: boolean;
37
+ };
34
38
  } | false;
35
39
  /** Options forwarded to tanstackStart(). */
36
40
  tanstackStart?: Record<string, unknown>;
package/dist/index.d.ts CHANGED
@@ -31,6 +31,10 @@ interface LovableViteTanstackOptions {
31
31
  publicDir?: string;
32
32
  serverDir?: string;
33
33
  };
34
+ cloudflare?: {
35
+ nodeCompat?: boolean;
36
+ deployConfig?: boolean;
37
+ };
34
38
  } | false;
35
39
  /** Options forwarded to tanstackStart(). */
36
40
  tanstackStart?: Record<string, unknown>;
package/dist/index.js CHANGED
@@ -288,7 +288,11 @@ function defineConfig(configOrOptions = {}) {
288
288
  publicDir: "dist/client",
289
289
  ...userNitroOpts.output
290
290
  };
291
- internalPlugins.push(nitro({ ...userNitroOpts, preset, output }));
291
+ const nitroOpts = { ...userNitroOpts, preset, output };
292
+ if (preset === "cloudflare-module") {
293
+ nitroOpts.cloudflare = { nodeCompat: true, deployConfig: true, ...userNitroOpts.cloudflare };
294
+ }
295
+ internalPlugins.push(nitro(nitroOpts));
292
296
  } catch {
293
297
  }
294
298
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovable.dev/vite-tanstack-config",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Vite config wrapper for Lovable TanStack Start projects",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",