diff --git a/bun.lockb b/bun.lockb index 0a9f1c5..e8e7381 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/next.config.mjs b/next.config.mjs index 2050c98..14c5c0d 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,5 +1,6 @@ import nextMDX from "@next/mdx"; +import bundleAnalyzer from "@next/bundle-analyzer"; import { recmaPlugins } from "./mdx/recma.mjs"; import { rehypePlugins } from "./mdx/rehype.mjs"; import { remarkPlugins } from "./mdx/remark.mjs"; @@ -12,11 +13,13 @@ const withMDX = nextMDX({ recmaPlugins, }, }); - /** @type {import('next').NextConfig} */ const nextConfig = { pageExtensions: ["js", "jsx", "ts", "tsx", "mdx"], output: "export", }; -export default withSearch(withMDX(nextConfig)); +const withBundleAnalyzer = bundleAnalyzer({ + enabled: process.env.ANALYZE === "true", +}); +export default withBundleAnalyzer(withSearch(withMDX(nextConfig))); diff --git a/package.json b/package.json index 28e059b..cc50114 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "@sindresorhus/slugify": "^2.2.1", "@tailwindcss/typography": "^0.5.13", "@types/mdx": "^2.0.13", - "@types/node": "^20.14.11", + "@types/node": "^20.14.12", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", "@types/react-highlight-words": "^0.20.0", @@ -29,7 +29,7 @@ "clsx": "^2.1.1", "fast-glob": "^3.3.2", "flexsearch": "^0.7.43", - "framer-motion": "^11.3.8", + "framer-motion": "^11.3.15", "mdast-util-to-string": "^4.0.0", "mdx-annotations": "^0.1.4", "next": "^14.2.5", @@ -40,10 +40,10 @@ "remark": "^15.0.1", "remark-gfm": "^4.0.0", "remark-mdx": "^3.0.1", - "shiki": "^1.11.0", + "shiki": "^1.11.1", "simple-functional-loader": "^1.2.1", "tailwindcss": "^3.4.6", - "typescript": "^5.5.3", + "typescript": "^5.5.4", "unist-util-filter": "^5.0.1", "unist-util-visit": "^5.0.0", "zustand": "^4.5.4" @@ -51,7 +51,8 @@ "devDependencies": { "@biomejs/biome": "^1.8.3", "@iconify-icon/react": "^2.1.0", - "@shikijs/transformers": "^1.11.0", + "@next/bundle-analyzer": "^14.2.5", + "@shikijs/transformers": "^1.11.1", "sharp": "^0.33.4" }, "trustedDependencies": ["@biomejs/biome", "sharp"]