Skip to content

[babel 8] Add modules: "auto" default change docs#3211

Merged
nicolo-ribaudo merged 1 commit into
babel:mainfrom
nicolo-ribaudo:modules-auto-docs
Jun 15, 2026
Merged

[babel 8] Add modules: "auto" default change docs#3211
nicolo-ribaudo merged 1 commit into
babel:mainfrom
nicolo-ribaudo:modules-auto-docs

Conversation

@nicolo-ribaudo

Copy link
Copy Markdown
Member

@netlify

netlify Bot commented Jun 14, 2026

Copy link
Copy Markdown

Deploy Preview for babel-next ready!

Name Link
🔨 Latest commit c17828f
🔍 Latest deploy log https://app.netlify.com/projects/babel-next/deploys/6a2e7c3a94ded50008473251
😎 Deploy Preview https://deploy-preview-3211--babel-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jun 14, 2026

Copy link
Copy Markdown

Deploy Preview for babel ready!

Name Link
🔨 Latest commit c17828f
🔍 Latest deploy log https://app.netlify.com/projects/babel/deploys/6a2e7c3ac925eb000855d88c
😎 Deploy Preview https://deploy-preview-3211--babel.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread docs/preset-env.md

:::babel8

Unless the caller specifies otherwise, Babel will assume that it does support ES modules.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
Unless the caller specifies otherwise, Babel will assume that it does support ES modules.
Unless the caller specifies otherwise, Babel will assume that it does support ES modules syntax including `import`, `import()` and `import * as ns`.

Looking back we should have added a new caller flag for import attributes, in the future we may need more caller flags if other module proposals such as import.defer reaches stage 4.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It depends on how transpilable are these things. If the target supports import attributes but the caller does, it's likely that transpiling them to a fetch call it's going to make it impossible for the bundler anyway.

@nicolo-ribaudo nicolo-ribaudo merged commit 38780f0 into babel:main Jun 15, 2026
4 checks passed
@nicolo-ribaudo

Copy link
Copy Markdown
Member Author

I wanted to apply the suggestion above and instead merged 😅 Doing it in a separate commit.

@nicolo-ribaudo nicolo-ribaudo deleted the modules-auto-docs branch June 16, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants