-
I set up ProvidePlugin to provide the import for Raviger router's Link component with the following line in webpack.config.js: What I found was that only the .js files in my project where affected so I still needed to add Is there an option in the mdx loader that I can set to get this functionality? It's possible I'm not understanding webpack'c configuration also, but so far I can not get this import to work in mdx using ProvidePlugin. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can pass |
Beta Was this translation helpful? Give feedback.
You can pass
Link
toMDXContent
, or provide it. See Using MDX.I don’t think you need
ProvidePlugin
, but I don’t know webpack well, you might be better off asking them.