-
Notifications
You must be signed in to change notification settings - Fork 4
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 tsconfig path aliases #17
Comments
I thought the |
About the tsconfig support, It will be really a lot of code to implement it in plain js because it could contains None of us esbuild wrappers ( So the support for tsconfig paths are just from using the esbuild bundle mode. This is what esbuild-runner does when not using One possible implementation for tsconfig in |
My apologies for confusing a different esbuild-dev with yours! 🙈 I didn't pay attention to the different modes (transform vs. build) indeed, that explains it now. Here's the related issue in esbuild for reference: evanw/esbuild#394 What I've noticed however, is that
I'm not asking anything here — just sharing my experience. |
It seems that esbuild-dev doesn't recognize path aliases.
For example, consider
tsconfig.json
and two files:
src/main.ts
doingimport "@/foo"
src/foo.ts
doingconsole.log("I am foo")
The app will crash:
For comparison, esbuild-runner will work just fine:
The text was updated successfully, but these errors were encountered: