Skip to content

Fix hard-pinned Babel peer deps in published packages#395

Merged
yoannmoinet merged 2 commits into
masterfrom
vitrine/fix-hard-pinned-babel-peer-deps-in-webpa-41f67b0d
Jun 3, 2026
Merged

Fix hard-pinned Babel peer deps in published packages#395
yoannmoinet merged 2 commits into
masterfrom
vitrine/fix-hard-pinned-babel-peer-deps-in-webpa-41f67b0d

Conversation

@yoannmoinet
Copy link
Copy Markdown
Member

What and why?

All 5 published packages (webpack-plugin, esbuild-plugin, rollup-plugin, rspack-plugin, vite-plugin) and the live-debugger internal plugin had exact-pinned peerDependencies for @babel/parser, @babel/traverse, and @babel/types at "7.24.5". npm 7+ treats a mismatched peer dep as a hard error, so any user on a newer Babel version is blocked from installing the plugin without --legacy-peer-deps. Fixes #391.

How?

Changed the three Babel peer dep versions from the exact pin "7.24.5" to the caret range "^7.24.5" in every affected peerDependencies block. The devDependencies exact pins in live-debugger/package.json are internal to the monorepo and left untouched — they do not affect consumers.

yarn cli integrity and yarn typecheck:all both pass without changes.

…ges (#391)

Change exact-pinned peerDependencies for @babel/parser, @babel/traverse,
and @babel/types from '7.24.5' to '^7.24.5' in all 5 published packages
and the live-debugger internal plugin.

npm 7+ treats mismatched peer deps as hard errors, so users on a newer
Babel version were blocked from installing the plugin without --legacy-peer-deps.
@datadog-official
Copy link
Copy Markdown

datadog-official Bot commented Jun 3, 2026

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: d8f4ec2 | Docs | Datadog PR Page | Give us feedback!

@yoannmoinet yoannmoinet marked this pull request as ready for review June 3, 2026 15:38
@yoannmoinet yoannmoinet requested a review from a team as a code owner June 3, 2026 15:38
@yoannmoinet yoannmoinet merged commit 77749df into master Jun 3, 2026
4 of 5 checks passed
@yoannmoinet yoannmoinet deleted the vitrine/fix-hard-pinned-babel-peer-deps-in-webpa-41f67b0d branch June 3, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

webpack-plugin is hard pinned to babel version

2 participants