This pull request's diff hasn't been prepared yet. Log in with GitHub to have us prepare it for review.

Skip HTML-like comments in the parser's character lookahead #18378

Closed
babel-bot opened 8:52pm on October 20, 2026 wanted to merge 0 commits into babel/babel 7.x from
automation/backport-18323

Pull Request Overview

  • Opened on October 20, 2026
  • Status Closed
  • Commit count 0

Total Delta

0 Total Diff Delta

Open Days

Open 24 weekdays

Test Delta

0 Diff Delta in Test Files
Breakdown by Phase

How long has this pull request spent in each phase of its lifecycle?

Data pending calculation for pull request

Author avatar

Skip HTML-like comments in the parser's character lookahead

Backport of #18323 to 7.x

Cherry-picked commits:
- 0915316cf4a66e85af77ff9043d2f9c8a439418b β†’ Skip HTML-like comments in the parser's character lookahead

Conflicts: None.

Fix commit: "Fix import() fixture output after backporting #18323" regenerates annex-b/enabled/1.1-html-comments-open-import-call/output.json: on 7.x import() parses as CallExpression with an Import callee (not ImportExpression, which is Babel 8 only).

Checks: Build passed. The parser tests pass after the fix. The full test run has 6 remaining failures in packages/babel-code-frame/test/color-detection.js. That file is unrelated to this change, and the failures look environment-related (terminal color detection). Lint passed in the initial workflow run. My re-run hit a Node out-of-memory error, so I could not confirm lint after the fix. The fix only touches a JSON fixture.


[!WARNING]

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:


  • github.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:

allowed:
- defaults
- "github.com"

See Network Configuration for more information.

Generated by πŸ”™ Backport to 7.x for #18323 Β· copilot Β· auto Β· 23 AIC Β· βŒ– 0.728 AIC Β· ⊞ 9.1K Β· β—·


Comments Threads Pending Resolution

Resolved Comment Threads

No resolved comments have been left on this PR.