Will typescript-go support importing .ts extensions? #1670
Unanswered
alexgleason
asked this question in
Q&A
Replies: 1 comment 2 replies
-
TS7 will have the same module primitives (minus deprecated ones) as TS 5.9/6.0 What you're describing is already broadly possible with |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Will TypeScript 7 support modern path-resolution like Vite, esbuild, etc?
There's a tc39 proposal for browsers to support type stripping, so that TypeScript files could be imported and run directly in the browser.
It raises the question of what a TypeScript source file "should" look like. TypeScript is an idealized form of JavaScript, with the role of tsc being to transform the idealized form into the compatible form.
The world has overwhelmingly chosen
.ts
imports. It would be a huge win if typescript 7 could eclipse bundlers.EDIT: I forgot to mention, I know that TypeScript 5.7 introduced the
rewriteRelativeImportExtensions
option, but it is an incomplete imlementation that doesn't support path aliases like@/utils/example.ts
Beta Was this translation helpful? Give feedback.
All reactions