message: chore(theme): remove compact code
diff: import {
  addViteOptimizeDepsExclude,
  addViteOptimizeDepsInclude,
  - mergeViteConfig,
  tagHint,
  } from "vuepress-shared/node";
  import type { App } from "@vuepress/core";
  import type { ViteBundlerOptions } from "@vuepress/bundler-vite";
  import type { WebpackBundlerOptions } from "@vuepress/bundler-webpack";
  -import type { ViteCommonOptions } from "vuepress-shared/node";
  /**
  * Add tags as customElement
  @@ -76,45 +74,9 @@ export const checkTag = (config: unknown, app: App): void => {
  }
  };
  -// this optimize shall be at @vuepress/bundler-vite
  -// TODO: Remove this
  -const optimizeChunkSplit = ({ app, config }: ViteCommonOptions): void => {
  - const { bundler } = app.options;
  -
  - if (bundler.name.endsWith("vite")) {
  - const bundlerConfig = <ViteBundlerOptions>config;
  -
  - bundlerConfig.viteOptions = mergeViteConfig(
  - bundlerConfig.viteOptions || {},
  - {
  - build: {
  - rollupOptions: {
  - output: {
  - manualChunks(id: string) {
  - // move known framework code into a stable chunk so that
  - // custom theme changes do not invalidate hash for all pages
  - if (
  - id.includes("plugin-vue:export-helper") ||
  - /node_modules\/@vuepress\/shared\//.test(id) ||
  - /node_modules\/vue(-router)?\//.test(id)
  - ) {
  - return "framework";
  - }
  -
  - return undefined;
  - },
  - },
  - },
  - },
  - }
  - );
  - }
  -};
  -
  export const extendsBundlerOptions = (config: unknown, app: App): void => {
  addViteOptimizeDepsInclude({ app, config }, "@vueuse/core");
  addViteOptimizeDepsExclude({ app, config }, "@theme-hope");
  - optimizeChunkSplit({ app, config });
  checkTag(config, app);
  };
  