Skip to content

Does not find .mts file when doing extensionless import and BundlerΒ #60409

Open

Description

πŸ”Ž Search Terms

mts bundler

πŸ•— Version & Regression Information

  • This is the behavior in every version I tried, and I reviewed the FAQ for entries about Bundler

⏯ Playground Link

cannot test modulerResolution in the playground

πŸ’» Code

tsconfig.json

  moduleResolution: "Bundler"

file.mts

export const hi = 1

file2.mts

import {hi} from './file'

πŸ™ Actual behavior

fails to find ./file

πŸ™‚ Expected behavior

should resolve just like a bundler, so it should find the .mts file

Additional information about the issue

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions