d36df0dda5
* Test case for path mapping with extension * Try file if matched pattern specifies the extension instead of all the time Fixes #39743
27 lines
537 B
Plaintext
27 lines
537 B
Plaintext
=== /node_modules/foo/lib/test.d.ts ===
|
|
export declare function test(): void;
|
|
>test : () => void
|
|
|
|
=== /relative.d.ts ===
|
|
export declare function relative(): void;
|
|
>relative : () => void
|
|
|
|
|
|
=== /test.ts ===
|
|
import { test } from "foo/test.js";
|
|
>test : () => void
|
|
|
|
import { test as test2 } from "foo/test";
|
|
>test : () => void
|
|
>test2 : () => void
|
|
|
|
import { relative } from "./relative.js";
|
|
>relative : () => void
|
|
|
|
import { relative as relative2 } from "./relative";
|
|
>relative : () => void
|
|
>relative2 : () => void
|
|
|
|
|
|
|