You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Description:**
This PR fixes an issue where downstream projects using swc_core as a
dependency encounter build errors when generating documentation with
--cfg docsrs. The problem occurs because certain conditional compilation
flags include docsrs directly, causing rustdoc to include code that
depends on modules not available in downstream projects.
The fix modifies conditional compilation flags in lib.rs and plugin.rs
to require both docsrs and the relevant feature to be enabled, rather
than including code with only docsrs set. This ensures that when a
downstream project builds docs with --cfg docsrs, code is only included
if the specific feature is also enabled
**Related issue:**
- Closes#10384
0 commit comments