Repository navigation
Conversation
Contributor
Optional E2E testsSome optional checks were not successful. They do not block the merge. 1 not successful, 61 successful. See the run.
Successful checks
|
Contributor
size-limit report 📦Compared: 6bda3de (PR test merge using base PR #27063 at ba12f86) Against: ba12f86 (base PR #27063) · base run #68581 ✅ Baseline matches: this diff contains only this PR's changes.
|
timfish
added a commit
that referenced
this pull request
Dec 2, 2026
…loads (#27081) The `collectors` suite in `exports.test.ts` called `parseModule` in the `describe` body, which runs when Vitest collects the file, before the `beforeAll` hook that awaits `loadParser()`. When the dynamic import of `oxc-parser` had not resolved by then, the whole file failed with "`oxc-parser` has not loaded yet", as seen on "Node (20.19) Unit Tests (2/2)" in #27075 and #27077. The fixture is now parsed in a `beforeAll` of the suite, so the test no longer depends on that timing. No other test in `bundler-plugins` or in the `vite` tests of `cloudflare`, `sveltekit` and `tanstackstart-react` parses at collection time.
timfish
marked this pull request as ready for review
December 2, 2026 14:10
javascript-sdk-gitflow
Bot
requested review from
andreiborza,
isaacs and
maxcell
December 2, 2026 14:10
…ule in its own plugin The transform hook moves from the main plugin to a new plugin, `sentry-<bundler>-transform`. On Rollup the bundle size flags are now replaced by a rule of the rewriter. The rewriter parses a module on the first read of `ctx.ast`, so a rule that only reads the code needs no parser. It also writes to Rolldown's native MagicString when Rolldown passes one.
timfish
force-pushed
the
feat/bundler-plugins-module-transform
branch
from
December 2, 2026 14:41
9766c38 to
3aa8dc2
Compare
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.
Second step of phase 2 of the call-site rewriter (#25776). Stacked on #27063.
The
transformhook moves out of the main plugin into a new plugin,sentry-<bundler>-transform, which runs rewriter rules. SDKs will put their own rules in the same kind of plugin, so that a module is parsed once. On Rollup, a rule now replaces the bundle size flags. Component annotation becomes a rule in the next PR.The rewriter now parses a module on the first read of
ctx.ast, so a rule that only reads the code needs no parser. It writes to Rolldown's native MagicString when Rolldown passes one.Behaviour changes:
sentryVitePluginandsentryRollupPluginreturn one more plugin when component annotation is on. On Rollup they also do so when a bundle size flag is set.The bundler integration tests for flags and annotation pass on all bundlers.