fix(core): always alias React/ReactDOM to site dependency so that importing MDX from anywhere works (#10391)

This commit is contained in:
Sébastien Lorber 2024-08-12 17:19:36 +02:00 committed by GitHub
parent 547979a59f
commit 419d559fa7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 120 additions and 1 deletions

View file

@ -0,0 +1,13 @@
# Import Bad Package
We are importing MDX content from a file that is in a package that has a bad React version.
This is expected to work despite the bad version.
See https://github.com/facebook/docusaurus/issues/9027
---
import Readme from '@site/../admin/test-bad-package/README.mdx';
<Readme />