mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-04 09:19:16 +02:00
fix(core): always alias React/ReactDOM to site dependency so that importing MDX from anywhere works (#10391)
This commit is contained in:
parent
547979a59f
commit
419d559fa7
8 changed files with 120 additions and 1 deletions
13
website/_dogfooding/_docs tests/tests/import-bad-package.mdx
Normal file
13
website/_dogfooding/_docs tests/tests/import-bad-package.mdx
Normal 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 />
|
Loading…
Add table
Add a link
Reference in a new issue