Skip to content

deps: update Babel, remove where redundant or useless#6633

Open
jaskfla wants to merge 4 commits intodevfrom
up-babel
Open

deps: update Babel, remove where redundant or useless#6633
jaskfla wants to merge 4 commits intodevfrom
up-babel

Conversation

@jaskfla
Copy link
Contributor

@jaskfla jaskfla commented Feb 7, 2026

No description provided.

@jaskfla jaskfla added dependencies Pull requests that update a dependency file cooldown labels Feb 7, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @jaskfla, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request performs a comprehensive update of Babel dependencies across the entire project. The primary goal is to modernize the JavaScript compilation pipeline by upgrading all relevant Babel packages and eliminating plugins that are no longer necessary due to advancements in JavaScript language support or newer Babel preset capabilities. This effort leads to a cleaner and more efficient build configuration.

Highlights

  • Babel Dependency Updates: All @babel/* dependencies across the monorepo have been updated to their latest versions, ensuring the project leverages the most recent features and performance improvements from the Babel ecosystem.
  • Redundant Plugin Removal: Several Babel proposal plugins, including @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods, and @babel/plugin-proposal-private-property-in-object, have been removed from various configuration files and package.json files. This indicates that these features are now natively supported by the target JavaScript environment or are handled by updated Babel presets, making the explicit plugins redundant.
  • Configuration Cleanup: Babel configuration files like babel.config.json and .babelrc.js have been streamlined by removing unnecessary plugin declarations, simplifying the build setup.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • babel.config.json
    • Removed @babel/plugin-proposal-class-properties from the plugins list.
    • Streamlined the presets array formatting.
  • package.json
    • Updated @babel/cli, @babel/core, @babel/eslint-parser, @babel/node, @babel/plugin-proposal-export-default-from, @babel/plugin-transform-runtime, @babel/preset-env, @babel/preset-react, and @babel/types to newer versions.
    • Removed @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods, and @babel/plugin-proposal-private-property-in-object from devDependencies.
  • packages/access-policy/package.json
    • Updated @babel/eslint-parser to ^7.28.6.
  • packages/admin-panel/.babelrc.js
    • Removed the plugins section, specifically @babel/plugin-proposal-class-properties.
  • packages/aggregator/package.json
    • Updated @babel/eslint-parser to ^7.28.6.
  • packages/auth/package.json
    • Updated @babel/eslint-parser to ^7.28.6.
  • packages/central-server/package.json
    • Updated @babel/polyfill to ^7.12.1.
    • Updated @babel/core, @babel/eslint-parser, and @babel/node to newer versions.
  • packages/database/package.json
    • Updated @babel/core, @babel/eslint-parser, and @babel/node to newer versions.
  • packages/dhis-api/package.json
    • Updated @babel/eslint-parser to ^7.28.6.
  • packages/e2e/package.json
    • Updated @babel/cli, @babel/core, @babel/eslint-parser, and @babel/node to newer versions.
  • packages/expression-parser/package.json
    • Updated @babel/eslint-parser to ^7.28.6.
  • packages/kobo-api/package.json
    • Updated @babel/eslint-parser to ^7.28.6.
  • packages/lesmis/.babelrc.js
    • Removed the plugins section, specifically @babel/plugin-proposal-class-properties.
  • packages/meditrak-app/package.json
    • Updated @babel/core, @babel/eslint-parser, @babel/preset-env, and @babel/runtime to newer versions.
  • packages/ui-components/babel.test.js
    • Removed multiple Babel proposal plugins: @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-property-in-object, and @babel/plugin-proposal-private-methods.
  • packages/ui-map-components/babel.test.js
    • Removed multiple Babel proposal plugins: @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-property-in-object, and @babel/plugin-proposal-private-methods.
  • packages/utils/package.json
    • Updated @babel/eslint-parser to ^7.28.6.
Activity
  • No specific activity (comments, reviews, or progress updates) has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

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

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 effectively updates Babel dependencies and cleans up the configuration by removing redundant plugins. The changes are generally good and align with modern Babel practices. I've identified a couple of areas for improvement: one related to a version mismatch in package.json resolutions, and another concerning a deprecated dependency that can be removed.

"@babel/plugin-transform-runtime": "^7.29.0",
"@babel/preset-env": "^7.29.0",
"@babel/preset-react": "^7.28.5",
"@babel/types": "^7.29.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

high

While updating @babel/types here is correct, the resolutions block in this file (lines 54-58) still pins @babel/types to 7.25.6. This can cause conflicts and prevent this updated version from being used. Please update the resolutions block to 7.29.0 to ensure consistency across the workspace.

},
"dependencies": {
"@babel/polyfill": "^7.0.0",
"@babel/polyfill": "^7.12.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The @babel/polyfill package is deprecated and should be removed. The root babel.config.json is already configured to use @babel/plugin-transform-runtime with corejs: 3, which handles polyfills automatically without polluting the global scope. This makes the explicit inclusion of @babel/polyfill redundant. Removing this dependency aligns with modern Babel practices and the goal of this PR to remove redundant dependencies.

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

Labels

cooldown dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant