-
-
Notifications
You must be signed in to change notification settings - Fork 167
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
Support resolving ./foo.js
to ./foo.ts
#342
Comments
It works fine with
|
Closing as a duplicate of #112 |
i am getting this error. i posted a similar comment on 112. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For some reason, to use ESM in TypeScript, to import
./foo.ts
we need to useimport foo from './foo.js'
, so@esbuild-kit/esm-loader
should support that.Basically, try resolving
.js
to.ts
and.jsx
to.tsx
.Related:
allowJs
) #135BTW, consider distributing the library without minification. Minifying just makes it harder to debug locally and use
patch-package
while providing no benefit.The text was updated successfully, but these errors were encountered: