-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
esbuild does not properly resolve extends field in tsconfig.json #279
Comments
This doesn't appear to be how the official TypeScript compiler works. Here's what I did to test it:
Trying to build this with the official TypeScript compiler using |
Embarrassing. Nonetheless, I have packages that build with the official TS compiler, but not with esbuild—I guess at this rate I don’t really know whether to regard this as being by specification or as a side effect. My scoped config packages have their |
This should be fixed in version 0.6.9. |
Now I'm having the opposite problem: |
If the
tsconfig.json
file contains anextends
field, and this field is a package reference rather than pointing specifically to the JSON file, it is not properly resolved by esbuild.For example, I may have a package
@my-scope/tsconfig-base
, wherepackage.json
specifies itsmain
entry astsconfig.json
. Then this will work:but this will not:
The Typescript documentation specifies that “The path may use Node.js style resolution”; I interpret this as meaning that it should resolve
main
entries in referenced packages.The text was updated successfully, but these errors were encountered: