Skip to content

Breaking: parserOpts.createImportExpressions defaults to true#16114

Merged
JLHwung merged 2 commits into
babel:mainfrom
JLHwung:babel-8-createImportExpressions
Nov 24, 2023
Merged

Breaking: parserOpts.createImportExpressions defaults to true#16114
JLHwung merged 2 commits into
babel:mainfrom
JLHwung:babel-8-createImportExpressions

Conversation

@JLHwung

@JLHwung JLHwung commented Nov 21, 2023

Copy link
Copy Markdown
Contributor
Q                       A
Fixed Issues? parserOpts.createImportExpressions defaults to true in Babel 8, RFC: babel/rfcs#4
Patch: Bug Fix?
Major: Breaking Change? Yes
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link babel/website#2849
Any Dependency Changes?
License MIT

In this PR we defaults to parser option createImportExpressions to true in Babel 8. The option has been implemented in Babel 7.23 in #15682.

I intend to keep this option in Babel 8 so the community has more time to prepare for the AST changes. In Babel 9 we can remove this parser option.

@JLHwung JLHwung added the PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release label Nov 21, 2023
@babel-bot

Copy link
Copy Markdown
Collaborator

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

@liuxingbaoyu liuxingbaoyu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

packages\babel-parser\typings\babel-parser.source.d.ts

Can you update it?

@JLHwung
JLHwung merged commit bd98d8f into babel:main Nov 24, 2023
@JLHwung
JLHwung deleted the babel-8-createImportExpressions branch November 24, 2023 15:49
@github-actions github-actions Bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Feb 24, 2024
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Feb 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: parser PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants