diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 14751530..43cf279c 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -1,6 +1,7 @@ import * as path from 'node:path' import { type UserConfig, defineUserConfig } from 'vuepress' import { viteBundler } from '@vuepress/bundler-vite' +import { addViteOptimizeDepsInclude, addViteSsrExternal } from '@vuepress/helper' import { theme } from './theme.js' export default defineUserConfig({ @@ -21,6 +22,11 @@ export default defineUserConfig({ pagePatterns: ['**/*.md', '!**/*.snippet.md', '!.vuepress', '!node_modules'], + extendsBundlerOptions(bundlerOptions, app) { + addViteOptimizeDepsInclude(bundlerOptions, app, '@simonwep/pickr') + addViteSsrExternal(bundlerOptions, app, '@simonwep/pickr') + }, + bundler: viteBundler(), theme, diff --git a/docs/.vuepress/themes/components/ColorPick.vue b/docs/.vuepress/themes/components/ColorPick.vue index 0beb0f71..925a8c44 100644 --- a/docs/.vuepress/themes/components/ColorPick.vue +++ b/docs/.vuepress/themes/components/ColorPick.vue @@ -1,23 +1,20 @@