Skip to content

build: upgrade magic-string to 1.0.0 and update import syntax#3858

Merged
alan-agius4 merged 1 commit into
angular:mainfrom
alan-agius4:update-magic-string
Jul 20, 2026
Merged

build: upgrade magic-string to 1.0.0 and update import syntax#3858
alan-agius4 merged 1 commit into
angular:mainfrom
alan-agius4:update-magic-string

Conversation

@alan-agius4

Copy link
Copy Markdown
Contributor

Update magic-string to latest.

@alan-agius4
alan-agius4 requested a review from clydin July 20, 2026 14:07
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Jul 20, 2026
@angular-robot angular-robot Bot added the area: build & ci Related the build and CI infrastructure of the project label Jul 20, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the import of magic-string in rollup.config.js to use destructuring. However, the reviewer correctly identified that this change will lead to a runtime TypeError because magic-string exports its main class as the default export in CommonJS, meaning MagicString would be undefined. The reviewer provided an actionable suggestion to destructure the default export and alias it to MagicString instead.

Comment thread bazel/rules/rules_angular/src/ng_package/rollup/rollup.config.js Outdated
@alan-agius4
alan-agius4 force-pushed the update-magic-string branch from 9769ed5 to b04477a Compare July 20, 2026 14:14
@alan-agius4
alan-agius4 force-pushed the update-magic-string branch from b04477a to 7ee178c Compare July 20, 2026 14:15
@alan-agius4
alan-agius4 merged commit 8befcbf into angular:main Jul 20, 2026
17 checks passed
@alan-agius4

Copy link
Copy Markdown
Contributor Author

This PR was merged into the repository. The changes were merged into the following branches:

@alan-agius4
alan-agius4 deleted the update-magic-string branch July 20, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants