diff --git a/docs/docs/getting-started.mdx b/docs/docs/getting-started.mdx index 74bc9c310..56790685f 100644 --- a/docs/docs/getting-started.mdx +++ b/docs/docs/getting-started.mdx @@ -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)$/}) ] }) // …