chore: ⬆️ Upgrade dependencies, add bundle analyzer

This commit is contained in:
Jesse Wierzbinski 2024-07-24 14:21:49 +02:00
parent be3faaade9
commit 850efb4bd3
No known key found for this signature in database
3 changed files with 11 additions and 7 deletions

BIN
bun.lockb

Binary file not shown.

View file

@ -1,5 +1,6 @@
import nextMDX from "@next/mdx"; import nextMDX from "@next/mdx";
import bundleAnalyzer from "@next/bundle-analyzer";
import { recmaPlugins } from "./mdx/recma.mjs"; import { recmaPlugins } from "./mdx/recma.mjs";
import { rehypePlugins } from "./mdx/rehype.mjs"; import { rehypePlugins } from "./mdx/rehype.mjs";
import { remarkPlugins } from "./mdx/remark.mjs"; import { remarkPlugins } from "./mdx/remark.mjs";
@ -12,11 +13,13 @@ const withMDX = nextMDX({
recmaPlugins, recmaPlugins,
}, },
}); });
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = { const nextConfig = {
pageExtensions: ["js", "jsx", "ts", "tsx", "mdx"], pageExtensions: ["js", "jsx", "ts", "tsx", "mdx"],
output: "export", output: "export",
}; };
export default withSearch(withMDX(nextConfig)); const withBundleAnalyzer = bundleAnalyzer({
enabled: process.env.ANALYZE === "true",
});
export default withBundleAnalyzer(withSearch(withMDX(nextConfig)));

View file

@ -20,7 +20,7 @@
"@sindresorhus/slugify": "^2.2.1", "@sindresorhus/slugify": "^2.2.1",
"@tailwindcss/typography": "^0.5.13", "@tailwindcss/typography": "^0.5.13",
"@types/mdx": "^2.0.13", "@types/mdx": "^2.0.13",
"@types/node": "^20.14.11", "@types/node": "^20.14.12",
"@types/react": "^18.3.3", "@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0", "@types/react-dom": "^18.3.0",
"@types/react-highlight-words": "^0.20.0", "@types/react-highlight-words": "^0.20.0",
@ -29,7 +29,7 @@
"clsx": "^2.1.1", "clsx": "^2.1.1",
"fast-glob": "^3.3.2", "fast-glob": "^3.3.2",
"flexsearch": "^0.7.43", "flexsearch": "^0.7.43",
"framer-motion": "^11.3.8", "framer-motion": "^11.3.15",
"mdast-util-to-string": "^4.0.0", "mdast-util-to-string": "^4.0.0",
"mdx-annotations": "^0.1.4", "mdx-annotations": "^0.1.4",
"next": "^14.2.5", "next": "^14.2.5",
@ -40,10 +40,10 @@
"remark": "^15.0.1", "remark": "^15.0.1",
"remark-gfm": "^4.0.0", "remark-gfm": "^4.0.0",
"remark-mdx": "^3.0.1", "remark-mdx": "^3.0.1",
"shiki": "^1.11.0", "shiki": "^1.11.1",
"simple-functional-loader": "^1.2.1", "simple-functional-loader": "^1.2.1",
"tailwindcss": "^3.4.6", "tailwindcss": "^3.4.6",
"typescript": "^5.5.3", "typescript": "^5.5.4",
"unist-util-filter": "^5.0.1", "unist-util-filter": "^5.0.1",
"unist-util-visit": "^5.0.0", "unist-util-visit": "^5.0.0",
"zustand": "^4.5.4" "zustand": "^4.5.4"
@ -51,7 +51,8 @@
"devDependencies": { "devDependencies": {
"@biomejs/biome": "^1.8.3", "@biomejs/biome": "^1.8.3",
"@iconify-icon/react": "^2.1.0", "@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" "sharp": "^0.33.4"
}, },
"trustedDependencies": ["@biomejs/biome", "sharp"] "trustedDependencies": ["@biomejs/biome", "sharp"]