@lovable.dev/vite-tanstack-config 2.5.1-rc.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 +9 -9
- package/dist/index.js +9 -9
- package/package.json +1 -1
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
|
}
|
|
@@ -471,13 +478,7 @@ function defineConfig(configOrOptions = {}) {
|
|
|
471
478
|
// requests. React core only — including @tanstack/react-start would pull its
|
|
472
479
|
// node:async_hooks server entry into the client bundle and crash hydration.
|
|
473
480
|
optimizeDeps: {
|
|
474
|
-
include: [
|
|
475
|
-
"react",
|
|
476
|
-
"react-dom",
|
|
477
|
-
"react-dom/client",
|
|
478
|
-
"react/jsx-runtime",
|
|
479
|
-
"react/jsx-dev-runtime"
|
|
480
|
-
],
|
|
481
|
+
include: ["react", "react-dom", "react-dom/client", "react/jsx-runtime", "react/jsx-dev-runtime"],
|
|
481
482
|
ignoreOutdatedRequests: true
|
|
482
483
|
},
|
|
483
484
|
plugins: [...internalPlugins, ...options.plugins ?? []]
|
|
@@ -489,8 +490,7 @@ function defineConfig(configOrOptions = {}) {
|
|
|
489
490
|
validateConfig(config);
|
|
490
491
|
config = cleanServerConfig(
|
|
491
492
|
(0, import_vite.mergeConfig)(config, {
|
|
492
|
-
|
|
493
|
-
server: { host: "::", port: 8080, strictPort: true, watch: { ignored: ["**/.workspace/**"] } }
|
|
493
|
+
server: { host: "::", port: 8080, strictPort: true, watch: { ignored: [...TOOL_MANAGED_WATCH_IGNORES] } }
|
|
494
494
|
})
|
|
495
495
|
);
|
|
496
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
|
}
|
|
@@ -437,13 +444,7 @@ function defineConfig(configOrOptions = {}) {
|
|
|
437
444
|
// requests. React core only — including @tanstack/react-start would pull its
|
|
438
445
|
// node:async_hooks server entry into the client bundle and crash hydration.
|
|
439
446
|
optimizeDeps: {
|
|
440
|
-
include: [
|
|
441
|
-
"react",
|
|
442
|
-
"react-dom",
|
|
443
|
-
"react-dom/client",
|
|
444
|
-
"react/jsx-runtime",
|
|
445
|
-
"react/jsx-dev-runtime"
|
|
446
|
-
],
|
|
447
|
+
include: ["react", "react-dom", "react-dom/client", "react/jsx-runtime", "react/jsx-dev-runtime"],
|
|
447
448
|
ignoreOutdatedRequests: true
|
|
448
449
|
},
|
|
449
450
|
plugins: [...internalPlugins, ...options.plugins ?? []]
|
|
@@ -455,8 +456,7 @@ function defineConfig(configOrOptions = {}) {
|
|
|
455
456
|
validateConfig(config);
|
|
456
457
|
config = cleanServerConfig(
|
|
457
458
|
mergeConfig(config, {
|
|
458
|
-
|
|
459
|
-
server: { host: "::", port: 8080, strictPort: true, watch: { ignored: ["**/.workspace/**"] } }
|
|
459
|
+
server: { host: "::", port: 8080, strictPort: true, watch: { ignored: [...TOOL_MANAGED_WATCH_IGNORES] } }
|
|
460
460
|
})
|
|
461
461
|
);
|
|
462
462
|
} else {
|