-
|
If some of my developers writing documentation forget to add an import statement for a React component they're using in their .mdx files, the above warning is printed out while building. I'd like to treat this as an error since we basically deployed something that didn't look the way we expected because of a missing import statement. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Doing this is non-trivial. See #2448 TL;DR: the log is directly logged from MDX and it silently transforms that to a div without a config option. Unless you pipe the stdout stream and parse the log yourself, there's no way for Docusaurus to control this... |
Beta Was this translation helpful? Give feedback.
Doing this is non-trivial. See #2448
TL;DR: the log is directly logged from MDX and it silently transforms that to a div without a config option. Unless you pipe the stdout stream and parse the log yourself, there's no way for Docusaurus to control this...