-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does tsc support importing for relative path with extension? #5587
Comments
FYI doing |
out of curiosity, why do you need to specify an extension in import? |
Because that is the suggested convention for referencing the file name. As in: excerpt:
I can't remember the exact reason. |
Duplicates #4595? |
Yes it is the same issue, but targeting compile/transpile logic in I have a related issue on jspm that tries to see if a pure, raw typescript module is possible. |
They both seem to be stemming form the same issue. we need to reach a solution, we have been waiting on the loader spec to solidify. |
Currently
import myClass from './myClass.ts';
transpile tovar myClass_ts_1 = require('./myClass.ts')'
.Since
myClass.ts
is transpile tomyClass.js
, the transpiled code does not work.I try to stick to pure ES6 as much as possible so I want to avoid using internal module syntax.
Thanks!
The text was updated successfully, but these errors were encountered: