From 92e2e4310558fe5a5ab4c58f17da8f107c172304 Mon Sep 17 00:00:00 2001 From: Neko Ayaka Date: Sat, 15 Feb 2025 17:02:51 +0800 Subject: [PATCH] fix: bad exclude --- packages/integrations/package.json | 2 +- packages/integrations/src/vitepress/vite/index.ts | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/integrations/package.json b/packages/integrations/package.json index d9f2b75f..5ffe6026 100644 --- a/packages/integrations/package.json +++ b/packages/integrations/package.json @@ -1,7 +1,7 @@ { "name": "@nolebase/integrations", "type": "module", - "version": "2.14.0-alpha3", + "version": "2.14.0-alpha4", "description": "A unconfig (unified configurations) for both VitePress and VitePress theme. Supporting all Nólëbase Integrations with default theme.", "author": { "name": "Nólëbase", diff --git a/packages/integrations/src/vitepress/vite/index.ts b/packages/integrations/src/vitepress/vite/index.ts index 402fd2b5..b31e41be 100644 --- a/packages/integrations/src/vitepress/vite/index.ts +++ b/packages/integrations/src/vitepress/vite/index.ts @@ -63,7 +63,18 @@ export function presetVite(options: PresetViteOptions): PresetVite { // This needs to be excluded from optimization exclude: [ 'vitepress', + '@nolebase/ui', + '@nolebase/ui-asciinema', + '@nolebase/ui-rive-canvas', '@nolebase/vitepress-plugin-index', + '@nolebase/vitepress-plugin-enhanced-mark', + '@nolebase/vitepress-plugin-enhanced-readabilities', + '@nolebase/vitepress-plugin-git-changelog', + '@nolebase/vitepress-plugin-highlight-targeted-heading', + '@nolebase/vitepress-plugin-index', + '@nolebase/vitepress-plugin-inline-link-preview', + '@nolebase/vitepress-plugin-page-properties', + '@nolebase/vitepress-plugin-thumbnail-hash', ], }, ssr: {