Skip to content

Commit

Permalink
fix(mdx): switch to official next-mdx-remote v5
Browse files Browse the repository at this point in the history
  • Loading branch information
sabertazimi committed Mar 28, 2024
1 parent 103ff19 commit 9b717ac
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 657 deletions.
2 changes: 1 addition & 1 deletion components/Article/ArticleContent.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MDXRemote } from '@alisowski/next-mdx-remote'
import { MDXRemote } from 'next-mdx-remote'
import MDX from '@components/MDX'
import type { Post } from '@types'

Expand Down
2 changes: 1 addition & 1 deletion lib/getPostsData.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { serialize } from '@alisowski/next-mdx-remote/serialize'
import { serialize } from 'next-mdx-remote/serialize'
import type { MDXFrontMatter, Post, PostMeta, Tag, Tags } from '@types'
import matter from 'gray-matter'
import { execSync } from 'node:child_process'
Expand Down
1 change: 0 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const nextConfig = {
transpilePackages: [
// @see https://github.com/vercel/next.js/issues/40183
// @see https://github.com/vercel/next.js/issues/58817
'@alisowski/next-mdx-remote',
'@ant-design/icons',
'@mdx-js/react',
'@react-hook/intersection-observer',
Expand Down
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"test:watch": "jest --watch"
},
"dependencies": {
"@alisowski/next-mdx-remote": "^4.4.3",
"@ant-design/cssinjs": "^1.18.5",
"@ant-design/icons": "^5.3.5",
"@codesandbox/sandpack-react": "^2.13.5",
Expand All @@ -64,7 +63,7 @@
"gray-matter": "^4.0.3",
"katex": "^0.16.9",
"next": "^14.1.4",
"next-mdx-remote": "^4.4.1",
"next-mdx-remote": "0.0.0-canary-20240314011020",
"next-progress": "^2.3.1",
"next-pwa": "^5.6.0",
"next-seo": "^6.5.0",
Expand Down Expand Up @@ -120,9 +119,5 @@
"ts-jest": "^29.1.2",
"tslib": "^2.6.2",
"typescript": "^5.4.3"
},
"resolutions": {
"unified": "^11.0.4",
"vfile": "^6.0.1"
}
}
Loading

0 comments on commit 9b717ac

Please sign in to comment.