@lovable.dev/vite-tanstack-config 2.5.1 → 2.5.2

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
@@ -40,6 +40,13 @@ var LOVABLE_SANDBOX_ENV_VAR = "LOVABLE_SANDBOX";
40
40
  function isSandboxEnvironment() {
41
41
  return process.env[LOVABLE_SANDBOX_ENV_VAR] === "1" || !!process.env[SANDBOX_ENV_VAR];
42
42
  }
43
+ var TOOL_MANAGED_WATCH_IGNORES = [
44
+ "**/.workspace/**",
45
+ "**/.agents/**",
46
+ "**/.claude/**",
47
+ "**/.lovable/**",
48
+ "**/.tanstack/tmp/**"
49
+ ];
43
50
  function logWarning(message) {
44
51
  console.warn(`[@lovable.dev/vite-tanstack-config] ${message}`);
45
52
  }
@@ -483,8 +490,7 @@ function defineConfig(configOrOptions = {}) {
483
490
  validateConfig(config);
484
491
  config = cleanServerConfig(
485
492
  (0, import_vite.mergeConfig)(config, {
486
- // .workspace is a mounted repo, not app code; watching it breaks the HMR freeze gate.
487
- server: { host: "::", port: 8080, strictPort: true, watch: { ignored: ["**/.workspace/**"] } }
493
+ server: { host: "::", port: 8080, strictPort: true, watch: { ignored: [...TOOL_MANAGED_WATCH_IGNORES] } }
488
494
  })
489
495
  );
490
496
  } else {
package/dist/index.js CHANGED
@@ -6,6 +6,13 @@ var LOVABLE_SANDBOX_ENV_VAR = "LOVABLE_SANDBOX";
6
6
  function isSandboxEnvironment() {
7
7
  return process.env[LOVABLE_SANDBOX_ENV_VAR] === "1" || !!process.env[SANDBOX_ENV_VAR];
8
8
  }
9
+ var TOOL_MANAGED_WATCH_IGNORES = [
10
+ "**/.workspace/**",
11
+ "**/.agents/**",
12
+ "**/.claude/**",
13
+ "**/.lovable/**",
14
+ "**/.tanstack/tmp/**"
15
+ ];
9
16
  function logWarning(message) {
10
17
  console.warn(`[@lovable.dev/vite-tanstack-config] ${message}`);
11
18
  }
@@ -449,8 +456,7 @@ function defineConfig(configOrOptions = {}) {
449
456
  validateConfig(config);
450
457
  config = cleanServerConfig(
451
458
  mergeConfig(config, {
452
- // .workspace is a mounted repo, not app code; watching it breaks the HMR freeze gate.
453
- server: { host: "::", port: 8080, strictPort: true, watch: { ignored: ["**/.workspace/**"] } }
459
+ server: { host: "::", port: 8080, strictPort: true, watch: { ignored: [...TOOL_MANAGED_WATCH_IGNORES] } }
454
460
  })
455
461
  );
456
462
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovable.dev/vite-tanstack-config",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "description": "Vite config wrapper for Lovable TanStack Start projects",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",