[v2] Rollup plugin and jsx-runtime import rename in ESM env #1794
-
Hi, I'm configuring mdx-js with Vite (ssr mode but don't think that's too relevant). If I add
This is because I'm in "full ESM" mode and the import doesn't include the
https://github.com/mdx-js/mdx/blob/main/packages/rollup/test/index.test.js#L30 Am just wondering if this is the only/recommended way as it seems like a horrible hack... or if there is an issue I can watch for a fix? It seems similar to this issue: facebook/react#20235, but there is a lot of noise there. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Of course I immediately found the answer after posting my question. For others arriving here, we can add resolve/alias to the Vite config which is passed to Rollup:
|
Beta Was this translation helpful? Give feedback.
Of course I immediately found the answer after posting my question. For others arriving here, we can add resolve/alias to the Vite config which is passed to Rollup: