Vendor JS files in python workers SDK as esm modules#13311
Vendor JS files in python workers SDK as esm modules#13311petebacondarwin merged 8 commits intomainfrom
Conversation
🦋 Changeset detectedLatest commit: 2c0f85f The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
There's a minor edge case: for a file like The logic is sound. The test coverage is good. The code is well-scoped and doesn't introduce any backward compatibility risks (it only changes behavior for Python workers with files specifically under LGTM |
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
wrangler
commit: |
7a1c97f to
436a01f
Compare
|
Codeowners approval required for this PR:
Show detailed file reviewers |
|
…s.ts Co-authored-by: Pete Bacon Darwin <pete@bacondarwin.com>
…are/workers-sdk into gyeongjae/python-module-js-files
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
This updates the vendoring logic of Python workers so that we can include some JavaScript files in our Python SDK package.
Currently, all the files in the
python_modulesdirectory (packages installed for Python workers) are uploaded as buffer types. But we would like to make some JavaScript files in our SKD package to be uploaded as ESM types so that they can be imported in the runtime.