Skip to content

fix: correct headless component subpath exports - #36606

Open
Dmytro Kirpa (dmytrokirpa) wants to merge 2 commits into
microsoft:masterfrom
dmytrokirpa:fix/headless-subpath-exports
Open

fix: correct headless component subpath exports#36606
Dmytro Kirpa (dmytrokirpa) wants to merge 2 commits into
microsoft:masterfrom
dmytrokirpa:fix/headless-subpath-exports

Conversation

@dmytrokirpa

@dmytrokirpa Dmytro Kirpa (dmytrokirpa) commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • update the avatar-group, overflow, menu-button, and tag-picker subpath exports to use the package's nested import and require conditions
  • point CommonJS runtime and type conditions to the emitted .cjs and .d.cts files
  • fix the export-map-entry-exists conformance test so it actually runs — it declared zero parameters, and react-conformance skips extra tests whose arity is not 1 when disableTypeTests is enabled
  • update that test's expected shape to the nested import/require conditions, and disable it for subcomponents (they have no top-level entry file, so no export map entry of their own)
  • add a patch change file for @fluentui/react-headless-components-preview

Validation

  • yarn nx run react-headless-components-preview:build
  • yarn nx run react-headless-components-preview:lint
  • yarn nx test react-headless-components-preview --skip-nx-cache — 77 suites / 1030 tests passing, including the now-executing export map conformance test
  • verified native ESM and CommonJS resolution for all affected subpaths
  • verified CommonJS module evaluation for all affected subpaths
  • git diff --check

@dmytrokirpa
Dmytro Kirpa (dmytrokirpa) requested a review from a team as a code owner August 21, 2026 23:08
@github-actions

Copy link
Copy Markdown

📊 Bundle size report

✅ No changes found

@github-actions

Copy link
Copy Markdown

Pull request demo site: URL

… entry

The export-map-entry-exists extra test declared zero parameters, so react-conformance silently skipped it when disableTypeTests is enabled. Give it the options parameter, update the expected shape to the dual import/require conditional exports, disable it for subcomponents, and fix the stale ./tag-picker entry it caught.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant