From cb42168f9dc05a6f316d1f6156715903393c435e Mon Sep 17 00:00:00 2001 From: qiang Date: Fri, 19 Apr 2024 17:28:44 +0800 Subject: [PATCH] Revert "feat: add dayjs to optimizeDeps (#92)" (#100) This reverts commit 7eb32be55c0e6c8bfa0e39d97d14eb85156e5ffb. --- src/core/options.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/core/options.ts b/src/core/options.ts index afeb4f3..b4b3c79 100644 --- a/src/core/options.ts +++ b/src/core/options.ts @@ -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/*'] - } - } }