dx: avoid error with Vite server

Massimo Melina committed Jun 8, 2026 at 17:00 UTC 322bb1a0963275b785fd96f43b99e9f2589cf8f7
1 file changed +1 -1
admin/src/locale.ts
+1 -1
@@ -1,7 +1,7 @@
1 /// <reference types="vite/client" />
2 import { findDefined } from './misc'
3
4 -const localeLoaders = import.meta.glob('../../node_modules/dayjs/locale/*.js')
4 +const localeLoaders = import.meta.glob('../../node_modules/dayjs/esm/locale/*.js')
5 const localePaths = new Map(Object.keys(localeLoaders).map(path => [path.match(/([^/]+)\.js$/)![1], path]))
6 const localeAliases: Record<string, string> = { zn: 'zh-cn', no: 'nb' }
7