Skip to content

Commit

Permalink
Upgrade MDX dependencies to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bensmithett committed Feb 9, 2022
1 parent 05151e4 commit 5ceb30c
Show file tree
Hide file tree
Showing 3 changed files with 675 additions and 586 deletions.
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -3,9 +3,9 @@
"version": "10.0.0",
"dependencies": {
"@babel/core": "^7.14.6",
"@mdx-js/mdx": "^1.6.22",
"@mdx-js/react": "^1.6.22",
"@mdx-js/rollup": "^2.0.0-rc.1",
"@mdx-js/mdx": "^2.0.0",
"@mdx-js/react": "^2.0.0",
"@mdx-js/rollup": "^2.0.0",
"@storybook/addon-actions": "^6.4.8",
"@storybook/addon-essentials": "^6.4.8",
"@storybook/addon-links": "^6.4.8",
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Expand Up @@ -8,7 +8,7 @@ import rehypeSlug from 'rehype-slug'
const dir = dirname(fileURLToPath(import.meta.url))

export default defineConfig({
plugins: [react(), mdx({ rehypePlugins: [rehypeSlug] })],
plugins: [react(), mdx({ rehypePlugins: [rehypeSlug], providerImportSource: '@mdx-js/react' })],
build: {
assetsInlineLimit: 0,
rollupOptions: {
Expand Down

0 comments on commit 5ceb30c

Please sign in to comment.