Skip to content

Commit

Permalink
fix: Add file extension to fix module resolution with webpack
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Jan 10, 2024
1 parent 0161423 commit 0730b71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/constants.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ interface Translations {
}

declare const LOCALES: Translations[]

declare module 'moment/min/moment-with-locales.js' {
import moment from 'moment'
export default moment
}
2 changes: 1 addition & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import moment from 'moment/min/moment-with-locales'
import moment from 'moment/min/moment-with-locales.js'
import Gettext from 'node-gettext'
import { getLocale } from '@nextcloud/l10n'

Expand Down

0 comments on commit 0730b71

Please sign in to comment.