revert: remove i18n lazy loading and highlight.js selective import (#736)

Revert the dynamic import() for i18n locales and highlight.js core+
registration from #696. Dynamic imports create separate chunk files
that cause 404 errors for users after updating when the browser still
references old chunk hashes.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
ekko
2026-05-14 23:32:33 +08:00
committed by GitHub
parent e5e44fd7e2
commit 7da934fe8b
7 changed files with 34 additions and 113 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ const highlightJsMock = vi.hoisted(() => ({
registerLanguage: vi.fn(),
}))
vi.mock('highlight.js/lib/core', () => ({
vi.mock('highlight.js', () => ({
default: highlightJsMock,
}))