We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46bb807 commit 7eb32beCopy full SHA for 7eb32be
src/core/options.ts
@@ -3,6 +3,14 @@ import { libraryName } from '../config'
3
4
export function resolveOptions () {
5
const nuxt = useNuxt()
6
+ const optimizeDeps = nuxt.options.vite.optimizeDeps?.include ?? []
7
8
nuxt.options.build.transpile.push(libraryName)
9
+ if (nuxt.options.vite.optimizeDeps) {
10
+ nuxt.options.vite.optimizeDeps.include = [...optimizeDeps, 'dayjs', 'dayjs/plugin/*']
11
+ } else {
12
+ nuxt.options.vite.optimizeDeps = {
13
+ include: ['dayjs', 'dayjs/plugin/*']
14
+ }
15
16
}
0 commit comments