Skip to content

[python] Refactor Python emitter node imports to be browser bundleable#10844

Draft
JennyPng wants to merge 3 commits into
microsoft:mainfrom
JennyPng:refactor-node-python-emitter
Draft

[python] Refactor Python emitter node imports to be browser bundleable#10844
JennyPng wants to merge 3 commits into
microsoft:mainfrom
JennyPng:refactor-node-python-emitter

Conversation

@JennyPng
Copy link
Copy Markdown
Member

@JennyPng JennyPng commented May 29, 2026

  • after polyfill plugin was removed, Python emitter is no longer browser bundleable due to Node or filesystem imports
  • extract Node calls into a separate file and swap for browser vs. non-browser

@microsoft-github-policy-service microsoft-github-policy-service Bot added the emitter:client:python Issue for the Python client emitter: @typespec/http-client-python label May 29, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 29, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/http-client-python@10844

commit: c2a2391

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 29, 2026

All changed packages have been documented.

  • @typespec/http-client-python
Show changes

@typespec/http-client-python - internal ✏️

Refactor Node usage in Python emitter to make it browser bundleable

@azure-sdk-automation
Copy link
Copy Markdown

azure-sdk-automation Bot commented May 29, 2026

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:python Issue for the Python client emitter: @typespec/http-client-python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant