• fix: strip paraglide's 'export * as m' after compile in prepare script
    Some checks failed
    CI / Backend (pull_request) Successful in 54s
    CI / UI (pull_request) Successful in 35s
    Release / Test backend (push) Successful in 24s
    CI / Backend (push) Successful in 1m2s
    CI / UI (push) Successful in 1m0s
    Release / Check ui (push) Failing after 29s
    Release / Docker / ui (push) Has been skipped
    Release / Docker / runner (push) Failing after 1m27s
    Release / Docker / caddy (push) Successful in 1m31s
    Release / Docker / backend (push) Failing after 1m31s
    Release / Gitea Release (push) Has been skipped

    kamil released this 2026-03-30 22:16:02 +05:00

    paraglide-js unconditionally emits 'export * as m from ...' in messages.js
    which causes Vite/Rollup SSR to tree-shake all named message imports,
    replacing every m.*() call with (void 0)() and crashing every page.
    Strip the two offending lines via a Node.js one-liner in the prepare script
    so the fix survives every npm ci run in CI.

    Also stop tracking messages.js in git since it is always regenerated.

    Downloads