Skip to content

Commit df10ce6

Browse files
fix: deep imports from day-js need .js extension (#165)
* fix: deep imports from day-js need .js extension dayjs/plugin/relativeTime is a deep file path import into the dayjs package. The dayjs package doesn't have an exports map entry for every plugin, so webpack has to resolve it as an actual file path. In strict ESM mode, that requires the .js extension. * Update deep import message for day-js in devtools * ci: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent e5c2b53 commit df10ce6

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/proud-maps-scream.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/pacer-devtools': patch
3+
---
4+
5+
fix(devtools): deep imports from day-js need .js extension

packages/pacer-devtools/src/components/StateHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import dayjs from 'dayjs'
2-
import relativeTime from 'dayjs/plugin/relativeTime'
2+
import relativeTime from 'dayjs/plugin/relativeTime.js'
33
import { createSignal, onCleanup, onMount } from 'solid-js'
44
import { useStyles } from '../styles/use-styles'
55

0 commit comments

Comments
 (0)