fix(compiler): align module resolution behavior with source loader by sushichan044 · Pull Request #8687 · microsoft/typespec

fixes #8688
github.com github.com