Repository navigation
Conversation
The Bun plugin now takes the same source map decision as the esbuild plugin. It turns on hidden source maps when the build sets none and an upload can run, and it deletes the maps from the build output after the upload, or always with `sourcemaps.delete: true`. The list of maps comes from Bun's build output.
Contributor
size-limit report 📦Compared: bf48605 (PR test merge using develop at 84df128) Against: 84df128 (develop) · base run #67645 ✅ Baseline matches: this diff contains only this PR's changes.
|
Contributor
Optional E2E testsSome optional checks were not successful. They do not block the merge. 2 not successful, 54 successful. See the run.
Successful checks
|
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 Bun plugin was the only bundler plugin without
sourcemaps.delete. It only logged a warning. It now takes the same source map decision as the esbuild plugin, and takes the list of maps from Bun's build output.Behaviour changes:
sourcemaps.delete: truedeletes the source maps after the build, also when no upload runs or the upload fails. Linked maps switch to hidden ones, so the bundles keep nosourceMappingURLcomment.sourcemapand an upload can run, the plugin turns on hidden source maps and deletes them after the upload, as the esbuild plugin does.sourcemaps.delete: falsekeeps them.sourcemaps.deleteSourcemapsAfterUploadnow works in the Bun plugin.sourcemaps.deleteis unset.The real-build tests are in
packages/bun/test/plugin.test.ts, because the bundler-plugins tests run in Node, not Bun.