You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we can fix this if we support pass compilerOptions to esbuild directly other than rely on resolve result about tsconfig(which seems rarely useful and inefficient for real world case and rollup and webpack doesn't support this)
The text was updated successfully, but these errors were encountered:
Yes, this is currently a limitation of the plugin API. One problem is that esbuild's internals read this information in the resolver for performance, but this does not make for a good plugin API so it has not been exposed. Perhaps your suggestion should be how the existing tsconfig option works.
It seems that esubuild's buitin resolve will return more information about tsconfig than resolve hook, which will affect transform result such as
UseDefineForClassFields
https://github.com/evanw/esbuild/blob/master/internal/bundler/bundler.go#L788-L810 resolve hook doesn't support return anything about tsconfig. you can see difference in the demo here https://github.com/hardfist/esbuild-bug/tree/main
we can fix this if we support pass compilerOptions to esbuild directly other than rely on resolve result about tsconfig(which seems rarely useful and inefficient for real world case and rollup and webpack doesn't support this)
The text was updated successfully, but these errors were encountered: