Skip to content

fix: the nodeExnext type file problem#1346

Merged
yifancong merged 1 commit intomainfrom
fix/dts-extensions
Oct 9, 2025
Merged

fix: the nodeExnext type file problem#1346
yifancong merged 1 commit intomainfrom
fix/dts-extensions

Conversation

@yifancong
Copy link
Contributor

Summary

This MR addresses the issue where the .js suffix was not included in index.d.ts. With "module": "NodeNext" and "moduleResolution": "NodeNext", the file extension needs to be specified explicitly. Therefore, this problem is resolved by using rslib's redirect.dts.extension.

Related Links

#1343

Copilot AI review requested due to automatic review settings October 9, 2025 08:44
@netlify
Copy link

netlify bot commented Oct 9, 2025

Deploy Preview for rsdoctor ready!

Name Link
🔨 Latest commit e88c0f5
🔍 Latest deploy log https://app.netlify.com/projects/rsdoctor/deploys/68e776034482990008604092
😎 Deploy Preview https://deploy-preview-1346--rsdoctor.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.

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 TypeScript declaration file issues when using "NodeNext" module resolution by explicitly enabling file extensions in .d.ts files. The change addresses compatibility problems where .js suffixes were missing from import statements in generated declaration files.

  • Enables explicit file extensions in TypeScript declaration files for NodeNext module resolution
  • Configures rslib's redirect.dts.extension option to resolve module resolution issues

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

@yifancong yifancong merged commit 735ec85 into main Oct 9, 2025
8 checks passed
@yifancong yifancong deleted the fix/dts-extensions branch October 9, 2025 08:53
@yifancong yifancong mentioned this pull request Oct 11, 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.

3 participants