Closed maelp closed 10 months ago
and there is actually a dist/app.js
which is there and correctly compiled...
@maelp The typescript compiler does not convert your path aliases. I know, it was surprising to me too when I first encountered this.
You will need to run something after it like tspath (not recommended) or use a bundler like tsup to compile and bundle the code. Tsup is based on esbuild which is very fast. I recommend using tsup. It's very easy and you can have a look at my mono-ts example to see how to configure it.
Going to close this since it is unrelated to isolate-package, but feel free to continue the conversation.
In my expressjs server that I'm using with isolate to deploy on GAE I do imports like
import app from "@/app"
with in the tsconfig:
"@/*": "./src/*"
but after compiling, and running isolate, I have this bug when deploying:
is there a way for this to work?
here is my tsconfig.json (the lib-gouach-db-schemas is my local monorepo lib that I'm including in the project)