Skip to content

docs: nest mutableNamespace under cjs in stub-esm guide - #2749

Open
Hashim1999164 wants to merge 1 commit into
sinonjs:mainfrom
Hashim1999164:docs/fix-esm-mutable-namespace-2714
Open

docs: nest mutableNamespace under cjs in stub-esm guide#2749
Hashim1999164 wants to merge 1 commit into
sinonjs:mainfrom
Hashim1999164:docs/fix-esm-mutable-namespace-2714

Conversation

@Hashim1999164

@Hashim1999164 Hashim1999164 commented Jul 22, 2026

Copy link
Copy Markdown

Summary

  • Fixes the esm loader example in the stub-esm how-to so mutableNamespace is nested under cjs, matching the package options.
  • Updates nearby wording so the docs describe cjs.mutableNamespace correctly.

Closes #2714

Test plan

The esm loader expects mutableNamespace inside the cjs options object,
not as a top-level option. Fixes sinonjs#2714.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to stub ES module imports documentation is incorrect

1 participant