Skip to content

Commit

Permalink
Revert "feat: add dayjs to optimizeDeps (#92)" (#100)
Browse files Browse the repository at this point in the history
This reverts commit 7eb32be.
  • Loading branch information
tolking authored Apr 19, 2024
1 parent e00ac53 commit cb42168
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/core/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@ import { libraryName } from '../config'

export function resolveOptions () {
const nuxt = useNuxt()
const optimizeDeps = nuxt.options.vite.optimizeDeps?.include ?? []

nuxt.options.build.transpile.push(libraryName)
if (nuxt.options.vite.optimizeDeps) {
nuxt.options.vite.optimizeDeps.include = [...optimizeDeps, 'dayjs', 'dayjs/plugin/*']
} else {
nuxt.options.vite.optimizeDeps = {
include: ['dayjs', 'dayjs/plugin/*']
}
}
}

0 comments on commit cb42168

Please sign in to comment.