Browse Source

[upd] web-client (simple): Bump vite from 6.3.5 to 7.0.0 in /client/simple (#4944)

* [upd] web-client (simple): Bump vite in /client/simple

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 7.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* [fix] theme/simple: api sync

CSS sourcemap generation doesn't work right now anyway.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ivan Gabaldon <igabaldon@inetol.net>
dependabot[bot] 2 days ago
parent
commit
db8d4d3877

+ 15 - 16
client/simple/package-lock.json

@@ -20,7 +20,7 @@
         "stylelint-prettier": "^5.0.3",
         "svgo": "^4.0.0",
         "swiped-events": "^1.2.0",
-        "vite": "^6.3.5",
+        "vite": "^7.0.1",
         "vite-plugin-static-copy": "^3.1.0"
       }
     },
@@ -4313,24 +4313,23 @@
       "license": "MIT"
     },
     "node_modules/vite": {
-      "version": "6.3.5",
-      "resolved": "https://registry.npmjs.org/vite/-/vite-6.3.5.tgz",
-      "integrity": "sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==",
+      "version": "7.0.1",
+      "resolved": "https://registry.npmjs.org/vite/-/vite-7.0.1.tgz",
+      "integrity": "sha512-BiKOQoW5HGR30E6JDeNsati6HnSPMVEKbkIWbCiol+xKeu3g5owrjy7kbk/QEMuzCV87dSUTvycYKmlcfGKq3Q==",
       "dev": true,
-      "license": "MIT",
       "dependencies": {
         "esbuild": "^0.25.0",
-        "fdir": "^6.4.4",
+        "fdir": "^6.4.6",
         "picomatch": "^4.0.2",
-        "postcss": "^8.5.3",
-        "rollup": "^4.34.9",
-        "tinyglobby": "^0.2.13"
+        "postcss": "^8.5.6",
+        "rollup": "^4.40.0",
+        "tinyglobby": "^0.2.14"
       },
       "bin": {
         "vite": "bin/vite.js"
       },
       "engines": {
-        "node": "^18.0.0 || ^20.0.0 || >=22.0.0"
+        "node": "^20.19.0 || >=22.12.0"
       },
       "funding": {
         "url": "https://github.com/vitejs/vite?sponsor=1"
@@ -4339,14 +4338,14 @@
         "fsevents": "~2.3.3"
       },
       "peerDependencies": {
-        "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
+        "@types/node": "^20.19.0 || >=22.12.0",
         "jiti": ">=1.21.0",
-        "less": "*",
+        "less": "^4.0.0",
         "lightningcss": "^1.21.0",
-        "sass": "*",
-        "sass-embedded": "*",
-        "stylus": "*",
-        "sugarss": "*",
+        "sass": "^1.70.0",
+        "sass-embedded": "^1.70.0",
+        "stylus": ">=0.54.8",
+        "sugarss": "^5.0.0",
         "terser": "^5.16.0",
         "tsx": "^4.8.1",
         "yaml": "^2.4.2"

+ 1 - 1
client/simple/package.json

@@ -30,7 +30,7 @@
     "stylelint-prettier": "^5.0.3",
     "svgo": "^4.0.0",
     "swiped-events": "^1.2.0",
-    "vite": "^6.3.5",
+    "vite": "^7.0.1",
     "vite-plugin-static-copy": "^3.1.0"
   }
 }

+ 3 - 28
client/simple/vite.config.js

@@ -48,45 +48,20 @@ export default defineConfig({
   // - build.sourcemap
   // - esbuild.sourcemap
   // - css.preprocessorOptions.less.sourceMap
-
   css: {
-    devSourcemap: true,
-    preprocessorOptions: {
-      less: {
-        // FIXME: missing CCS sourcemaps!!
-        sourceMap: {
-          outputSourceFiles: true,
-          sourceMapURL: (name) => {
-            const s = name.split("/");
-            return `${s[s.length - 1]}.map`;
-          }
-        }
-        // env: 'development',
-        // relativeUrls: true,
-        // javascriptEnabled: true,
-      }
-    }
+    devSourcemap: true
   }, // end: css
 
-  esbuild: {
-    // FIXME: missing CCS sourcemaps!!
-    sourcemap: true
-  },
-
   build: {
-    target: "modules",
+    target: ["chrome87", "edge88", "firefox78", "safari14"],
     manifest: "manifest.json",
     emptyOutDir: true,
     assetsDir: "",
     outDir: PATH.dist,
 
-    // FIXME: missing CCS sourcemaps!!
     sourcemap: true,
-
-    // https://vite.dev/config/build-options.html#build-cssminify
-    cssMinify: true,
-    // cssMinify: "esbuild",
     minify: "esbuild",
+    cssMinify: "esbuild",
 
     rollupOptions: {
       input: {

+ 12 - 3
searx/static/themes/simple/manifest.json

@@ -14,16 +14,25 @@
   "less/rss.less": {
     "file": "css/rss.min.css",
     "src": "less/rss.less",
-    "isEntry": true
+    "isEntry": true,
+    "names": [
+      "css/rss.min.css"
+    ]
   },
   "less/style-ltr.less": {
     "file": "css/searxng.min.css",
     "src": "less/style-ltr.less",
-    "isEntry": true
+    "isEntry": true,
+    "names": [
+      "css/searxng.min.css"
+    ]
   },
   "less/style-rtl.less": {
     "file": "css/searxng-rtl.min.css",
     "src": "less/style-rtl.less",
-    "isEntry": true
+    "isEntry": true,
+    "names": [
+      "css/searxng-rtl.min.css"
+    ]
   }
 }