Skip to content

Conversation

@Timeless0911
Copy link
Contributor

Summary

Before

image

After

image

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings November 21, 2025 10:24
@netlify
Copy link

netlify bot commented Nov 21, 2025

Deploy Preview for rslib ready!

Name Link
🔨 Latest commit 999288e
🔍 Latest deploy log https://app.netlify.com/projects/rslib/deploys/69203ddd05401500087bf37a
😎 Deploy Preview https://deploy-preview-1359--rslib.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.

Copilot finished reviewing on behalf of Timeless0911 November 21, 2025 10:25
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 fixes the error message displayed when no entry files are found in bundleless mode. Previously, the error message showed Cannot find [object Array], which was uninformative. The new error message clearly lists the file patterns that couldn't be matched and provides guidance on how to fix the issue.

  • Improved error message to show actual file patterns instead of [object Array]
  • Added test coverage for both bundle and bundleless modes when entry files don't exist
  • Error stack is cleared for cleaner console output

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
packages/core/src/config.ts Updated error message to display the actual entry file patterns with helpful guidance when no files are found in bundleless mode
tests/integration/entry/validate/bundleNonExistingFile.config.ts Added test configuration for bundle mode with non-existing entry file
tests/integration/entry/validate/bundlelessNonExistingFile.config.ts Added test configuration for bundleless mode with non-existing entry files
tests/integration/entry/index.test.ts Expanded test to validate error messages for both bundle and bundleless modes with non-existing files

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

@Timeless0911 Timeless0911 merged commit 1b509ea into main Nov 21, 2025
23 checks passed
@Timeless0911 Timeless0911 deleted the fix/bundleless-no-entry branch November 21, 2025 10:34
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.

3 participants