Support for `.js` extension
thetutlage opened this issue · 2 comments
thetutlage commented
Not sure if it is the job of this package to handle .js
files. However, I am using this package to run my tests and using tsc
to create the distribution build.
TypeScript forces the import file extension to be .js
and not .ts
, which does not work with this package. For example:
Following works with esbuild-node-loader
, but tsc
does not compile it
import Foo from './foo.ts'
Following works with tsc
, but not with esbuild-node-loader
.
import Foo from './foo.js'
hanayashiki commented
it should work now. We're using the ts module resolution directly
thetutlage commented
Thanks :)