@lovable.dev/vite-tanstack-config 2.1.1 → 2.2.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
@@ -367,6 +367,12 @@ function defineConfig(configOrOptions = {}) {
367
367
  }
368
368
  let config = {
369
369
  define: envDefine,
370
+ // Match the build's CSS pipeline in dev. Vite uses PostCSS in dev and only
371
+ // runs Lightning CSS at build, so build-time transforms (e.g. collapsing a
372
+ // hand-written `-webkit-backdrop-filter` to the prefixed form Chrome ignores)
373
+ // break the built/static output while the dev preview looks fine. Running
374
+ // Lightning CSS in both keeps the preview honest.
375
+ css: { transformer: "lightningcss" },
370
376
  resolve: {
371
377
  alias: {
372
378
  "@": `${process.cwd()}/src`
package/dist/index.js CHANGED
@@ -333,6 +333,12 @@ function defineConfig(configOrOptions = {}) {
333
333
  }
334
334
  let config = {
335
335
  define: envDefine,
336
+ // Match the build's CSS pipeline in dev. Vite uses PostCSS in dev and only
337
+ // runs Lightning CSS at build, so build-time transforms (e.g. collapsing a
338
+ // hand-written `-webkit-backdrop-filter` to the prefixed form Chrome ignores)
339
+ // break the built/static output while the dev preview looks fine. Running
340
+ // Lightning CSS in both keeps the preview honest.
341
+ css: { transformer: "lightningcss" },
336
342
  resolve: {
337
343
  alias: {
338
344
  "@": `${process.cwd()}/src`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovable.dev/vite-tanstack-config",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "Vite config wrapper for Lovable TanStack Start projects",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -9,15 +9,6 @@
9
9
  "files": [
10
10
  "dist"
11
11
  ],
12
- "scripts": {
13
- "build": "tsup src/index.ts --format cjs,esm --dts --outDir dist",
14
- "typecheck": "tsgo --noEmit",
15
- "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
16
- "test": "vitest",
17
- "prepublishOnly": "npm run clean && npm run build",
18
- "clean": "rimraf dist",
19
- "coverage": "vitest run --coverage"
20
- },
21
12
  "keywords": [
22
13
  "vite",
23
14
  "tanstack",
@@ -28,6 +19,7 @@
28
19
  "dependencies": {
29
20
  "@lovable.dev/vite-plugin-dev-server-bridge": "^1.0.0",
30
21
  "@lovable.dev/vite-plugin-hmr-gate": "^1.0.0",
22
+ "lightningcss": "^1.30.0",
31
23
  "lovable-tagger": "1.2.0"
32
24
  },
33
25
  "peerDependencies": {
@@ -48,12 +40,20 @@
48
40
  "@tanstack/react-start": "^1.162.9",
49
41
  "@vitejs/plugin-react": "^4.5.2",
50
42
  "@tailwindcss/vite": "^4.2.1",
51
- "@types/node": "catalog:",
43
+ "@types/node": "22.13.13",
52
44
  "rimraf": "^5.0.0",
53
45
  "tsup": "^7.2.0",
54
- "typescript": "catalog:",
46
+ "typescript": "^5.9.3",
55
47
  "vite": "^7.3.1",
56
48
  "vite-tsconfig-paths": "^6.0.2",
57
- "vitest": "catalog:"
49
+ "vitest": "^4.1.5"
50
+ },
51
+ "scripts": {
52
+ "build": "tsup src/index.ts --format cjs,esm --dts --outDir dist",
53
+ "typecheck": "tsgo --noEmit",
54
+ "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
55
+ "test": "vitest",
56
+ "clean": "rimraf dist",
57
+ "coverage": "vitest run --coverage"
58
58
  }
59
- }
59
+ }