Replies: 1 comment
-
Check out the preferTsExts option.
…On Sat, Mar 27, 2021, 11:00 AM Chip Zhang ***@***.***> wrote:
In file a.ts:
import 'b'
when there are both files b.ts and the compile b.js, running ts-node a.ts,
it import the file a.js as the priority.
I think this should be a bug. It should use the file with .ts extension
in this case.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1287>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAC35ODJSAB3B7QL6SQIRR3TFXXHLANCNFSM4Z47YKEQ>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In file
a.ts
:when there are both files
b.ts
and the compileb.js
, runningts-node a.ts
, it import the filea.js
as the priority.I think this should be a bug. It should use the file with
.ts
extension in this case.Beta Was this translation helpful? Give feedback.
All reactions