This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
[lint] ts
files imported as js
files
#1639
Conaclos
started this conversation in
Suggestions
Replies: 1 comment
-
This is something we want to address, for sure. At the moment our resolution logic is poor, that's why we decided to turn it off for the upcoming release. |
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
-
TypeScript Compiler does not automatically add js file's extension upon transpiration. When the module's output is ESM, this leads to invalid imports. The code cannot be natively executed on nodejs. To tackle this issue, the TypeScript Compiler enables to import ts files using js extension.
For instance, the following code is valid:
This enables to natively execute the transpiled code. I'm using this technique in my TypeScript projects.
Using Rome v10.0.7-beta.8,
rome check
outputsCannot find ./a.js from b.ts
.Related issue: #1632.
Beta Was this translation helpful? Give feedback.
All reactions