Skip to content

Commit

Permalink
Add include mdx to vite react plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Dan <daniellehr@gmx.de>
  • Loading branch information
dan-lee committed Apr 17, 2024
1 parent 0c7605c commit c4921af
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: /\.(mdx|js|jsx|ts|tsx)$/ })
]
})
//
Expand Down

0 comments on commit c4921af

Please sign in to comment.