Skip to content

Commit 0730b71

Browse files
committed
fix: Add file extension to fix module resolution with webpack
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 0161423 commit 0730b71

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

lib/constants.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@ interface Translations {
44
}
55

66
declare const LOCALES: Translations[]
7+
8+
declare module 'moment/min/moment-with-locales.js' {
9+
import moment from 'moment'
10+
export default moment
11+
}

lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import moment from 'moment/min/moment-with-locales'
1+
import moment from 'moment/min/moment-with-locales.js'
22
import Gettext from 'node-gettext'
33
import { getLocale } from '@nextcloud/l10n'
44

0 commit comments

Comments
 (0)