Skip to content

Conversation

@9aoy
Copy link
Contributor

@9aoy 9aoy commented May 28, 2025

Summary

avoid colon in output config file name.

image

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings May 28, 2025 03:57
@netlify
Copy link

netlify bot commented May 28, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit f4bc936
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/68368adfabd4540008159852
😎 Deploy Preview https://deploy-preview-5325--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 73 (🔴 down 3 from production)
Accessibility: 97 (no change from production)
Best Practices: 92 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

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

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses an issue with colons in output configuration file names by replacing them with underscores.

  • Added a helper function (escapeOutputName) to sanitize file names by replacing colons.
  • Updated file name construction for both environment and bundler configuration files.

}): Promise<void> {
const { outputPath } = inspectOptions;

const escapeOutputName = (name: string) => name.replace(/[:]/g, '_');
Copy link

Copilot AI May 28, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider adding a doc comment for the escapeOutputName function to clarify its purpose and the rationale behind replacing colons with underscores.

Copilot uses AI. Check for mistakes.
@chenjiahan chenjiahan merged commit f16326c into main May 28, 2025
11 checks passed
@chenjiahan chenjiahan deleted the escape-inspect-output-name branch May 28, 2025 05:02
@chenjiahan chenjiahan mentioned this pull request Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants