Skip to content

Conversation

@chenjiahan
Copy link
Member

Summary

Instead of using require to load version from package.json, now imports package.json as a JSON module.

Fix the config loading error in debug mode:

image

Checklist

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

Copilot AI review requested due to automatic review settings October 23, 2025 05:45
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 modernizes the configuration file by replacing require() with an ES module import for loading package.json, fixing a config loading error that occurred in debug mode.

Key Changes:

  • Replaced require('./package.json') with ES module import using JSON import assertion
  • Fixed configuration loading errors in debug mode

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@netlify
Copy link

netlify bot commented Oct 23, 2025

Deploy Preview for rslib ready!

Name Link
🔨 Latest commit 848359b
🔍 Latest deploy log https://app.netlify.com/projects/rslib/deploys/68f9c10627181f000861f692
😎 Deploy Preview https://deploy-preview-1288--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.

@fi3ework fi3ework merged commit 83c20a4 into main Oct 23, 2025
15 checks passed
@fi3ework fi3ework deleted the fix_rslib_config_1023 branch October 23, 2025 06:05
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