Skip to content

docs: update root option docs#3204

Open
JLHwung wants to merge 3 commits into
babel:mainfrom
JLHwung:update-root-options-docs
Open

docs: update root option docs#3204
JLHwung wants to merge 3 commits into
babel:mainfrom
JLHwung:update-root-options-docs

Conversation

@JLHwung

@JLHwung JLHwung commented May 20, 2026

Copy link
Copy Markdown
Contributor

Docs PR for babel/babel#17999.

@netlify

netlify Bot commented May 20, 2026

Copy link
Copy Markdown

Deploy Preview for babel-next ready!

Name Link
🔨 Latest commit b1460d8
🔍 Latest deploy log https://app.netlify.com/projects/babel-next/deploys/6a15a741ffa7e00008992eed
😎 Deploy Preview https://deploy-preview-3204--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 May 20, 2026

Copy link
Copy Markdown

Deploy Preview for babel ready!

Name Link
🔨 Latest commit b1460d8
🔍 Latest deploy log https://app.netlify.com/projects/babel/deploys/6a15a741d2cfa6000831b981
😎 Deploy Preview https://deploy-preview-3204--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.

@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.

Do you think it's necessary for us to explain that source code maps outside the root directory will be ignored?

Comment thread docs/options.md Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the Babel root option documentation to reflect its additional role in resolving relative sourceMappingURL references (as part of the config loading / project root concept).

Changes:

  • Updates the root option description from “two” to “three” primary use cases.
  • Adds documentation describing how root bounds resolution of relative sourceMappingURL values (and that maps outside root are ignored).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/options.md Outdated
- The base directory when checking for the default [`"configFile"`](#configfile) value
- The default value for [`"babelrcRoots"`](#babelrcroots).
- The default value for [`"babelrcRoots"`](#babelrcroots)
- The base directory which a relative `sourceMappingURL` in the source file can be resolved up to. Source Maps not within `root` will be ignored.
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.

3 participants