gitea/web_src/js/utils
silverwind 0ec66b5380
Migrate from webpack to vite (#37002)
Replace webpack with Vite 8 as the frontend bundler. Frontend build is
around 3-4 times faster than before. Will work on all platforms
including riscv64 (via wasm).

`iife.js` is a classic render-blocking script in `<head>` (handles web
components/early DOM setup). `index.js` is loaded as a `type="module"`
script in the footer. All other JS chunks are also module scripts
(supported in all browsers since 2018).

Entry filenames are content-hashed (e.g. `index.C6Z2MRVQ.js`) and
resolved at runtime via the Vite manifest, eliminating the `?v=` cache
busting (which was unreliable in some scenarios like vscode dev build).

Replaces: https://github.com/go-gitea/gitea/pull/36896
Fixes: https://github.com/go-gitea/gitea/issues/17793
Signed-off-by: silverwind <me@silverwind.io>
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-03-29 10:24:30 +00:00
..
color.test.ts
color.ts Replace `tinycolor2` with `colord` (#36673) 2026-02-20 15:43:01 +00:00
dom.test.ts Update JS dependencies (#37001) 2026-03-27 04:39:24 +01:00
dom.ts Fix markup code block layout (#36578) 2026-02-11 03:22:33 +00:00
glob.test.ts Misc typescript tweaks (#36523) 2026-02-10 05:09:56 +00:00
glob.test.txt Fix different behavior in status check pattern matching with double stars (#35474) 2025-09-13 11:53:27 +08:00
glob.ts Fix different behavior in status check pattern matching with double stars (#35474) 2025-09-13 11:53:27 +08:00
html.test.ts Improve html escape (#34911) 2025-07-01 21:44:05 +08:00
html.ts Update eslint to v9 (#35485) 2025-09-14 19:15:06 +03:00
image.test.ts Forbid localStorage access in eslint (#36461) 2026-01-27 19:59:51 +00:00
image.ts Update eslint to v9 (#35485) 2025-09-14 19:15:06 +03:00
match.test.ts Load `mentionValues` asynchronously (#36739) 2026-03-07 12:37:37 -08:00
match.ts Load `mentionValues` asynchronously (#36739) 2026-03-07 12:37:37 -08:00
testhelper.ts Migrate from webpack to vite (#37002) 2026-03-29 10:24:30 +00:00
time.test.ts
time.ts Vendor relative-time-element as local web component (#36853) 2026-03-13 10:43:17 +00:00
url.test.ts Linkify URLs in Actions workflow logs (#36986) 2026-03-26 09:48:09 +00:00
url.ts Linkify URLs in Actions workflow logs (#36986) 2026-03-26 09:48:09 +00:00