kentcdodds / mdx-bundler

🦤 Give me MDX/TSX strings and I'll give you back a component you can render. Supports imports!
MIT License
1.78k stars 75 forks source link

Cache? Inspiration from the new react.org beta documentation that uses MDX #204

Open colinsteidtmann opened 1 year ago

colinsteidtmann commented 1 year ago

Hi, I was looking at how reactjs.org is handling mdx files. While it appears like they don't support imports/exports from within the MDX file, they do have a nice feature of caching the compiled file. Is it possible to cache the esbuild bundles, or are you already doing this? For me, in development mode, it seems like it takes a couple minutes for things to get "heated up" and render the first couple mdx pages.