Skip to content

Conversation

@jakebailey
Copy link
Member

@jakebailey jakebailey commented Jun 18, 2025

We're going to stop supporting ES5 transforms. They haven't been added to this repo, but are still present in our submodule, which then creates loads of diffs (mainly, let/const/class). I've now updated the porting branch / submodule to no longer contain ES5 transforms nor unicodeES5Identifier, more closely matching this repo.

This removes >14k baselines, >300k lines of diffs.

This PR does not change anything about deprecations, libs, etc. It's just targeted at fixing emit diffs.

Copilot AI review requested due to automatic review settings June 18, 2025 21:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the compiler submodule baselines to remove legacy ES5 transforms and unicodeES5Identifier support, aligning them with the modern ES6+ syntax used in the main repo.

  • Replaced generated helper wrappers (__extends, __generator, etc.) with native class, async/await, and function* syntax.
  • Swapped all var declarations for let/const, and classic function expressions for arrow functions and method shorthand.
  • Updated binding patterns, shorthand properties, and collection literals in test baselines to reflect ES6+ patterns.

@jakebailey jakebailey enabled auto-merge June 18, 2025 21:26
@jakebailey jakebailey added this pull request to the merge queue Jun 18, 2025
Merged via the queue into main with commit 5d559e3 Jun 18, 2025
22 checks passed
@jakebailey jakebailey deleted the jabaile/remove-es5-emit-stuff-submodule branch June 18, 2025 21:53
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.

4 participants