diff --git a/package-lock.json b/package-lock.json index e63aecbd4..e52dc7858 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,7 +23,6 @@ "jschardet": "^3.1.4", "log-update": "^6.1.0", "minimatch": "^10.0.1", - "p-map": "^7.0.3", "picocolors": "^1.1.1", "piscina": "^4.8.0", "strip-comments": "^2.0.1", @@ -3228,18 +3227,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/p-map": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-7.0.3.tgz", - "integrity": "sha512-VkndIv2fIB99swvQoA65bm+fsmt6UNdGeIB0oxBs+WhAhdh08QA04JXpI7rbB9r08/nkbysKoya9rtDERYOYMA==", - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/package-json-from-dist": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz", diff --git a/package.json b/package.json index d806f4cc6..967042de0 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,6 @@ "jschardet": "^3.1.4", "log-update": "^6.1.0", "minimatch": "^10.0.1", - "p-map": "^7.0.3", "picocolors": "^1.1.1", "piscina": "^4.8.0", "strip-comments": "^2.0.1", diff --git a/website/client/.gitignore b/website/client/.gitignore index 94aa6e0c8..9c0bc1975 100644 --- a/website/client/.gitignore +++ b/website/client/.gitignore @@ -1,3 +1,4 @@ .vitepress/cache .vitepress/dist node_modules +stats.html diff --git a/website/client/.vitepress/config/configShard.ts b/website/client/.vitepress/config/configShard.ts index d988ffe49..005fcb437 100644 --- a/website/client/.vitepress/config/configShard.ts +++ b/website/client/.vitepress/config/configShard.ts @@ -1,3 +1,4 @@ +import { visualizer } from 'rollup-plugin-visualizer'; import { defineConfig } from 'vitepress'; import { configEsSearch } from './configEs'; import { configJaSearch } from './configJa'; @@ -92,4 +93,12 @@ export const configShard = defineConfig({ gtag('config', '${googleAnalyticsTag}');`, ], ], + + vite: { + build: { + rollupOptions: { + plugins: [visualizer()], + }, + }, + }, }); diff --git a/website/client/components/TryItResultViewer.vue b/website/client/components/TryItResultViewer.vue index 91d462332..1fafb15dc 100644 --- a/website/client/components/TryItResultViewer.vue +++ b/website/client/components/TryItResultViewer.vue @@ -1,13 +1,16 @@