Skip to content

Commit 14e54dc

Browse files
committed
fix: be more specific on date-fns locale paths
somehow webpack resolves the main file to index.d.ts, causing build errors.
1 parent f42de72 commit 14e54dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli-ui/src/i18n.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ async function autoDetect () {
5454
name: 'VueTimeago',
5555
locale: i18n.locale,
5656
locales: {
57-
[i18n.locale]: require(`date-fns/locale/${dateFnsLocale}`)
57+
[i18n.locale]: require(`date-fns/locale/${dateFnsLocale}/index.js`)
5858
}
5959
}))
6060
}

0 commit comments

Comments
 (0)