dillon1000/react

Commit

[react-devtools-cdt-mcp] Throw on import from unsupported environment (#36975)

This add an additional validation that the package is imported in a
browser-like environment. If not, we should be explicit with the user
and throw an error.
Browse files
Changed paths2 files
First-parent comparison
M packages/react-devtools-cdt-mcp/src/__tests__/DevToolsCdtMcp-test.js ModifiedM packages/react-devtools-cdt-mcp/src/index.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…