@lovable.dev/vite-tanstack-config 2.6.4 → 2.7.0-rc.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 ADDED
@@ -0,0 +1,14 @@
1
+ # @lovable.dev/vite-tanstack-config
2
+
3
+ Vite config wrapper for Lovable TanStack Start projects.
4
+
5
+ ## What It Does
6
+
7
+ - Gives TanStack Start projects a single `defineConfig` helper for local preview and production builds.
8
+ - Keeps Lovable sandbox previews predictable by setting the server shape, watched paths, HMR coordination, and asset routing expected by the platform.
9
+ - Adds diagnostics that help the preview tell build, Vite, SSR, and app errors apart.
10
+ - Produces deployable build output for Lovable while still letting self-hosted projects choose their own target.
11
+
12
+ ## Customization
13
+
14
+ Apps can pass through Vite options and adjust the React, TanStack Start, Nitro, HMR gate, and error-logging behavior when they need to.
package/dist/index.cjs CHANGED
@@ -711,6 +711,19 @@ function defineConfig(configOrOptions = {}) {
711
711
  if (command === "serve") {
712
712
  internalPlugins.push(lovableAssetsProxyPlugin());
713
713
  }
714
+ if (mode === "development") {
715
+ const { devtools } = await import("@tanstack/devtools-vite");
716
+ internalPlugins.push(
717
+ devtools({
718
+ logging: false,
719
+ eventBusConfig: { enabled: false },
720
+ enhancedLogs: { enabled: false },
721
+ consolePiping: { enabled: false },
722
+ removeDevtoolsOnBuild: false,
723
+ injectSource: { enabled: true }
724
+ })
725
+ );
726
+ }
714
727
  if (command === "serve" && mode === "development") {
715
728
  internalPlugins.push((0, import_lovable_tagger.componentTagger)({ jsxSource: true }));
716
729
  }
package/dist/index.js CHANGED
@@ -676,6 +676,19 @@ function defineConfig(configOrOptions = {}) {
676
676
  if (command === "serve") {
677
677
  internalPlugins.push(lovableAssetsProxyPlugin());
678
678
  }
679
+ if (mode === "development") {
680
+ const { devtools } = await import("@tanstack/devtools-vite");
681
+ internalPlugins.push(
682
+ devtools({
683
+ logging: false,
684
+ eventBusConfig: { enabled: false },
685
+ enhancedLogs: { enabled: false },
686
+ consolePiping: { enabled: false },
687
+ removeDevtoolsOnBuild: false,
688
+ injectSource: { enabled: true }
689
+ })
690
+ );
691
+ }
679
692
  if (command === "serve" && mode === "development") {
680
693
  internalPlugins.push(componentTagger({ jsxSource: true }));
681
694
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovable.dev/vite-tanstack-config",
3
- "version": "2.6.4",
3
+ "version": "2.7.0-rc.0",
4
4
  "description": "Vite config wrapper for Lovable TanStack Start projects",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -28,6 +28,7 @@
28
28
  "dependencies": {
29
29
  "@lovable.dev/vite-plugin-dev-server-bridge": "^1.0.2",
30
30
  "@lovable.dev/vite-plugin-hmr-gate": "^1.1.1",
31
+ "@tanstack/devtools-vite": "^0.8.1",
31
32
  "lightningcss": "^1.30.0",
32
33
  "lovable-tagger": "1.2.0"
33
34
  },