Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Fix relativeTime dayjs plugin import #111

Merged
merged 2 commits into from
Oct 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/components/base/ProjectCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ import {
} from '@'
import dayjs from 'dayjs'
import relativeTime from 'dayjs/plugin/relativeTime'
import relativeTime from 'dayjs/plugin/relativeTime.js'
dayjs.extend(relativeTime)
</script>

Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,

"paths": {
"@/*": ["./lib/*"]
"@/*": ["./lib/*"],
"@": ["./lib/index.ts"]
}
},
"include": ["lib/**/*.js", "lib/**/*.ts", "lib/**/*.d.ts", "lib/**/*.tsx", "lib/**/*.vue"],
Expand Down