@lovable.dev/vite-tanstack-config 2.7.2-rc.3 → 2.7.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 +13 -13
- package/dist/index.js +13 -13
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -636,6 +636,19 @@ function defineConfig(configOrOptions = {}) {
|
|
|
636
636
|
options = hasLovableKey ? optionObject : { vite: optionObject };
|
|
637
637
|
}
|
|
638
638
|
const internalPlugins = [];
|
|
639
|
+
if (mode === "development") {
|
|
640
|
+
const { devtools } = await import("@tanstack/devtools-vite");
|
|
641
|
+
internalPlugins.push(
|
|
642
|
+
devtools({
|
|
643
|
+
logging: false,
|
|
644
|
+
eventBusConfig: { enabled: false },
|
|
645
|
+
enhancedLogs: { enabled: false },
|
|
646
|
+
consolePiping: { enabled: false },
|
|
647
|
+
removeDevtoolsOnBuild: false,
|
|
648
|
+
injectSource: { enabled: true }
|
|
649
|
+
})
|
|
650
|
+
);
|
|
651
|
+
}
|
|
639
652
|
const tailwindcss = (await import("@tailwindcss/vite")).default;
|
|
640
653
|
internalPlugins.push(tailwindcss());
|
|
641
654
|
const tsConfigPaths = (await import("vite-tsconfig-paths")).default;
|
|
@@ -710,19 +723,6 @@ function defineConfig(configOrOptions = {}) {
|
|
|
710
723
|
if (command === "serve") {
|
|
711
724
|
internalPlugins.push(lovableAssetsProxyPlugin());
|
|
712
725
|
}
|
|
713
|
-
if (mode === "development") {
|
|
714
|
-
const { devtools } = await import("@tanstack/devtools-vite");
|
|
715
|
-
internalPlugins.push(
|
|
716
|
-
devtools({
|
|
717
|
-
logging: false,
|
|
718
|
-
eventBusConfig: { enabled: false },
|
|
719
|
-
enhancedLogs: { enabled: false },
|
|
720
|
-
consolePiping: { enabled: false },
|
|
721
|
-
removeDevtoolsOnBuild: false,
|
|
722
|
-
injectSource: { enabled: true }
|
|
723
|
-
})
|
|
724
|
-
);
|
|
725
|
-
}
|
|
726
726
|
let envDefine = {};
|
|
727
727
|
if (options.envDefine !== false) {
|
|
728
728
|
const loadedEnv = (0, import_vite.loadEnv)(mode, process.cwd(), "VITE_");
|
package/dist/index.js
CHANGED
|
@@ -601,6 +601,19 @@ function defineConfig(configOrOptions = {}) {
|
|
|
601
601
|
options = hasLovableKey ? optionObject : { vite: optionObject };
|
|
602
602
|
}
|
|
603
603
|
const internalPlugins = [];
|
|
604
|
+
if (mode === "development") {
|
|
605
|
+
const { devtools } = await import("@tanstack/devtools-vite");
|
|
606
|
+
internalPlugins.push(
|
|
607
|
+
devtools({
|
|
608
|
+
logging: false,
|
|
609
|
+
eventBusConfig: { enabled: false },
|
|
610
|
+
enhancedLogs: { enabled: false },
|
|
611
|
+
consolePiping: { enabled: false },
|
|
612
|
+
removeDevtoolsOnBuild: false,
|
|
613
|
+
injectSource: { enabled: true }
|
|
614
|
+
})
|
|
615
|
+
);
|
|
616
|
+
}
|
|
604
617
|
const tailwindcss = (await import("@tailwindcss/vite")).default;
|
|
605
618
|
internalPlugins.push(tailwindcss());
|
|
606
619
|
const tsConfigPaths = (await import("vite-tsconfig-paths")).default;
|
|
@@ -675,19 +688,6 @@ function defineConfig(configOrOptions = {}) {
|
|
|
675
688
|
if (command === "serve") {
|
|
676
689
|
internalPlugins.push(lovableAssetsProxyPlugin());
|
|
677
690
|
}
|
|
678
|
-
if (mode === "development") {
|
|
679
|
-
const { devtools } = await import("@tanstack/devtools-vite");
|
|
680
|
-
internalPlugins.push(
|
|
681
|
-
devtools({
|
|
682
|
-
logging: false,
|
|
683
|
-
eventBusConfig: { enabled: false },
|
|
684
|
-
enhancedLogs: { enabled: false },
|
|
685
|
-
consolePiping: { enabled: false },
|
|
686
|
-
removeDevtoolsOnBuild: false,
|
|
687
|
-
injectSource: { enabled: true }
|
|
688
|
-
})
|
|
689
|
-
);
|
|
690
|
-
}
|
|
691
691
|
let envDefine = {};
|
|
692
692
|
if (options.envDefine !== false) {
|
|
693
693
|
const loadedEnv = loadEnv(mode, process.cwd(), "VITE_");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovable.dev/vite-tanstack-config",
|
|
3
|
-
"version": "2.7.2
|
|
3
|
+
"version": "2.7.2",
|
|
4
4
|
"description": "Vite config wrapper for Lovable TanStack Start projects",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"lightningcss": "^1.30.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
+
"vite": ">=5.0.0 <9.0.0",
|
|
26
27
|
"@tailwindcss/vite": ">=4.0.0",
|
|
27
|
-
"
|
|
28
|
-
"@vitejs/plugin-react": ">=4.0.0",
|
|
28
|
+
"vite-tsconfig-paths": ">=6.0.0",
|
|
29
29
|
"nitro": ">=3.0.260603-beta",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
30
|
+
"@tanstack/react-start": ">=1.100.0",
|
|
31
|
+
"@vitejs/plugin-react": ">=4.0.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependenciesMeta": {
|
|
34
34
|
"nitro": {
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"
|
|
39
|
+
"nitro": "3.0.260603-beta",
|
|
40
40
|
"@tanstack/react-start": "^1.167.50",
|
|
41
|
-
"@types/node": "22.13.13",
|
|
42
41
|
"@vitejs/plugin-react": "^5.2.0",
|
|
43
|
-
"
|
|
42
|
+
"@tailwindcss/vite": "^4.3.0",
|
|
43
|
+
"@types/node": "22.13.13",
|
|
44
44
|
"rimraf": "^5.0.0",
|
|
45
45
|
"tsup": "^7.2.0",
|
|
46
46
|
"typescript": "^5.9.3",
|