Skip to content

chore: Remove unused deps#18035

Open
liuxingbaoyu wants to merge 3 commits into
babel:mainfrom
liuxingbaoyu:remove-deps
Open

chore: Remove unused deps#18035
liuxingbaoyu wants to merge 3 commits into
babel:mainfrom
liuxingbaoyu:remove-deps

Conversation

@liuxingbaoyu
Copy link
Copy Markdown
Member

Q                       A
Fixed Issues? Fixes #1, Fixes #2
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

I've resolved some of the Knip reports, but the rest are false positives, and I haven't figured out a good solution yet.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bfa5d98519

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 27 to 29
"devDependencies": {
"@babel/core": "workspace:^",
"@babel/helper-transform-fixture-test-runner": "workspace:^"
"@babel/core": "workspace:^"
},
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Restore fixture runner dev dependency

When the babel-build-external-helpers batch tests run, test/batch-test-runner/*.js imports test/helpers/runner.js, and that helper imports @babel/helper-transform-fixture-test-runner directly. Removing it from this package's devDependencies leaves the workspace relying on an undeclared/hoisted package, so an isolated workspace install or dependency validation will fail to load those tests.

Useful? React with 👍 / 👎.

Comment on lines 23 to 26
"@babel/helper-plugin-test-runner": "workspace:^",
"@babel/helper-transform-fixture-test-runner": "workspace:^",
"@babel/parser": "workspace:^",
"regenerator-runtime": "^0.14.0",
"terser": "catalog:dev"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep regenerator-runtime with helpers

packages/babel-helpers/scripts/generate-regenerator-runtime.js resolves regenerator-runtime relative to @babel/helpers (createRequire(import.meta.url).resolve("regenerator-runtime")), and the comment in that script says to update the regenerator-runtime dependency of this package before regenerating. Moving the dependency to @babel/plugin-transform-regenerator leaves the helper-generation script unable to resolve its input in contexts that enforce package boundaries.

Useful? React with 👍 / 👎.

@babel-bot
Copy link
Copy Markdown
Collaborator

babel-bot commented May 30, 2026

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/61691

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 30, 2026

Open in StackBlitz

commit: 597fdc0

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c80bc745bf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread yarn.lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants