[Bug]: (v7) @mdx-js/rollup: Unexpected FunctionDeclaration
in code: only import/exports are supported. Error for a custom vite server.
#12168
Labels
What version of React Router are you using?
v7
Steps to Reproduce
Demo: https://stackblitz.com/edit/vitejs-vite-xmllxz?file=package.json
Expected Behavior
As a user, I expect the same behaviour for a custom vite server as a react-router one when using a mdx plugin.
Actual Behavior
When I run a react-router via a custom vite server with @mdx-js/rollup plugin I got error:
Demo: https://stackblitz.com/edit/vitejs-vite-xmllxz?file=package.json
The text was updated successfully, but these errors were encountered: