Override terser and babel-traverse deps#34245
Open
GoodDayForSurf wants to merge 3 commits into
Open
Conversation
GoodDayForSurf
commented
Jul 9, 2026
Contributor
- use patches for compatibility systemjs-builder with updated terser and babel-traverse
+ use patches for compatibility systemjs-builder with updated terser and babel-traverse
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates dependency resolution and applies targeted pnpm patches to keep systemjs-builder@0.16.15 working with newer terser and to align legacy babel-core@6.26.3 behavior with the @babel/traverse implementation.
Changes:
- Add pnpm
overridesto aliasbabel-traverseto@babel/traverseand to forcesystemjs-builderto useterser@5.46.2. - Add pnpm
patchedDependenciesentries forbabel-core@6.26.3andsystemjs-builder@0.16.15. - Introduce patch files updating
systemjs-builderminification/sourcemap handling for modern terser and adding defensive guards inbabel-core’s shadow-functions plugin.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pnpm-workspace.yaml | Adds overrides for babel-traverse and systemjs-builder>terser, and registers new patched dependencies. |
| pnpm-lock.yaml | Reflects the new overrides and patch hashes; updates resolved dependency graph accordingly. |
| patches/systemjs-builder@0.16.15.patch | Refactors lib/output.js minification to use the terser v5 API and make the minification path Promise-based. |
| patches/babel-core@6.26.3.patch | Adds guards for missing traversal path APIs when running with @babel/traverse-backed NodePath objects. |
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
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.