💅 useImportExtensions for actual file extension on disk #5313
Closed
huseeiin
started this conversation in
Rule suggestion
Replies: 2 comments
-
Indeed, I thunk this makes sense because TypeScript now supports an option that supports importing TS files directly with the |
Beta Was this translation helpful? Give feedback.
0 replies
-
With the dependency graph that we now have, we can actually see which file (including extension!) an import resolves to, so we should be able to update |
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
-
like deno, the extension in the import should match the actual extension of the file, so .js would not work for .tsx
you can leverage node's
import.meta.resolve
to determine the actual extensionBeta Was this translation helpful? Give feedback.
All reactions