a6a4ceee86
* fixing up typing * better dynamic loader mechanism * buildReqLoaders cleanup * added caching to loaders * ensuring all loaders are async * fe2 plugins error handling fix * feat(shared): true-myth result structures & other auth policy improvements * moving workspaceCore loaders to correct place
11 lines
316 B
TypeScript
11 lines
316 B
TypeScript
import dayjs from 'dayjs'
|
|
import relativeTime from 'dayjs/plugin/relativeTime'
|
|
import localizedFormat from 'dayjs/plugin/localizedFormat'
|
|
import duration from 'dayjs/plugin/duration.js'
|
|
|
|
export default defineNuxtPlugin(() => {
|
|
dayjs.extend(relativeTime)
|
|
dayjs.extend(localizedFormat)
|
|
dayjs.extend(duration)
|
|
})
|