Skip to content

Commit

Permalink
Add HMR to example of MDX w/ Vite
Browse files Browse the repository at this point in the history
Closes GH-2474.
  • Loading branch information
dan-lee committed Apr 17, 2024
1 parent 0c7605c commit 51500e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/getting-started.mdx
Expand Up @@ -352,7 +352,7 @@ To use more modern JavaScript features than what your users support,
const viteConfig = defineConfig({
plugins: [
{enforce: 'pre', ...mdx(/* jsxImportSource: …, otherOptions… */)},
react()
react({include: /\.(jsx|js|mdx|md|tsx|ts)$/})
]
})
//
Expand Down

0 comments on commit 51500e2

Please sign in to comment.