FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(parser): disallow `declare module M {}` by JLHwung · Pull Request #18120 · babel/babel · GitHub

/ babel Public

fix(parser): disallow declare module M {} - #18120

Merged
JLHwung merged 3 commits into
babel:mainfrom
JLHwung:fix-ts-declare-module
Jul 8, 2026
Merged

fix(parser): disallow declare module M {}#18120
JLHwung merged 3 commits into
babel:mainfrom
JLHwung:fix-ts-declare-module

Conversation

JLHwung commented Jul 6, 2026
edited
Loading

Copy link
Copy Markdown
Contributor
Q                       A
Fixed Issues? Forbids declare module M {}
Patch: Bug Fix? Yes
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

In this PR we reused the error InlineModuleDeclarationMustUseString for such cases. Also added new tests and updated the parser test results.

JLHwung added PR: Spec Compliance 👓 A type of pull request used for our changelog categories pkg: parser area: typescript labels Jul 6, 2026

babel-bot commented Jul 6, 2026
edited
Loading

Copy link
Copy Markdown
Collaborator

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

pkg-pr-new Bot commented Jul 7, 2026

Copy link
Copy Markdown

Open in StackBlitz

commit: 18b92a3

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: typescript pkg: parser PR: Spec Compliance 👓 A type of pull request used for our changelog categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL