Skip to content

[WIP] Port #60262 #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

[WIP] Port #60262 #4

wants to merge 1 commit into from

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Jun 5, 2025

  • Analyze repository structure and current module resolution code
  • Identify the issue in internal/module/resolver.go - inconsistent handling of resolvedUsingTsExtension flag in .tsx/.jsx case
  • Fix the inconsistency in the .tsx/.jsx case to match the pattern used in .ts/.dts/.js case
  • Run build to verify changes compile
  • Run tests and handle expected baseline changes
  • Verify the changes are minimal and correct

Analysis: Found inconsistency in tryAddingExtensions function where the .tsx/.jsx case only checks for .tsx when setting the resolvedUsingTsExtension flag, but should also check for .jsx to be consistent with how the .ts/.dts/.js case handles both .ts and .dts.

Fixes #2.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

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.

Port #60262
2 participants