Repository navigation
Conversation
`@babel/traverse` 8.1.4 changed the decorator transform to cache the base class, as in `class A extends (_Agent = Agent)`. The rewriter core only read a plain name or a member expression, so it no longer found the base of a decorated class. The Cloudflare auto-instrument then wrapped Agents as plain Durable Objects.
Contributor
size-limit report 📦Compared: 95307b7 (PR test merge using develop at 6dab20b) Against: 6dab20b (develop) · base run #68250 ✅ Baseline matches: this diff contains only this PR's changes.
|
Contributor
Optional E2E testsAll optional checks were successful. 56 successful. See the run. Successful checks
|
timfish
marked this pull request as ready for review
November 28, 2026 14:35
javascript-sdk-gitflow
Bot
requested review from
chargome,
nicohrubec and
s1gr1d
November 28, 2026 14:35
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The rewriter core now finds the base class when a decorator transform caches it in an assignment, as in
class A extends (_Agent = Agent).@babel/traverse8.1.4 changed the decorator transform thatagents/viteruns to emit that form. The core only read a plain name or a member expression, so decorated Agents in the worker entry were wrapped as plain Durable Objects, andcloudflare-autoinstrumentbroke ondevelop. The Cloudflare plugin ondevelopdoes not use the core yet, so the e2e test passes again once #26102, which is stacked on this PR, lands.