Rename BindingMagicString export to RolldownMagicString#8641
Rename BindingMagicString export to RolldownMagicString#8641IWANABETHATGUY merged 4 commits intomainfrom
BindingMagicString export to RolldownMagicString#8641Conversation
BindingMagicString export to RolldownMagicString
|
I leave it to you to decide if to use this PR @IWANABETHATGUY |
9b656b2 to
7e1ef16
Compare
|
The reason why I use |
|
@copilot resolve the conflict |
✅ Deploy Preview for rolldown-rs canceled.
|
|
@copilot continue resolve the conflict |
d6c430c to
5e8e204
Compare
There was a problem hiding this comment.
Pull request overview
Renames the public MagicString export used by rolldown’s plugin APIs from BindingMagicString to RolldownMagicString, and updates internal plugin hook plumbing/types accordingly so plugins can continue to return/use MagicString with native sourcemap support.
Changes:
- Rename the MagicString wrapper export in
binding-magic-string.tstoRolldownMagicString(type + constructor + exported const). - Update plugin API type surfaces (transform/renderChunk contexts and hook result types) to reference
RolldownMagicString. - Update bindingify hook adapters to construct/check
RolldownMagicStringfor lazy MagicString usage and direct return handling.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/rolldown/src/binding-magic-string.ts | Renames wrapper interface/constructor/export to RolldownMagicString. |
| packages/rolldown/src/index.ts | Re-exports RolldownMagicString from the package entrypoint. |
| packages/rolldown/src/plugin/index.ts | Updates public plugin hook/result typings to use RolldownMagicString. |
| packages/rolldown/src/plugin/transform-plugin-context.ts | Updates sendMagicString typing to accept RolldownMagicString. |
| packages/rolldown/src/plugin/bindingify-build-hooks.ts | Updates transform hook adapter to create/detect RolldownMagicString. |
| packages/rolldown/src/plugin/bindingify-output-hooks.ts | Updates renderChunk adapter to lazy-create/detect RolldownMagicString. |
|
Weird, why can't it be auto-merged after I approved it? |
BindingMagicStringtoRolldownMagicStringinbinding-magic-string.ts(interface, constructor type, and exported const)index.ts: import/exportRolldownMagicStringdirectlyRolldownMagicStringmain(bring unrelated files up to date)💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.