Hi Is there way we can configure import based abs...
# help
v
Hi Is there way we can configure import based absolute path in SST?
f
Hey @Vishal Vijay, not sure what you mean. Can you give me an example?
v
I want to replace
import Utility from '../../custom-lib/src/lib/utility';
with
import Utility from 'Lib/utility';
https://github.com/AnomalyInnovations/serverless-bundle Please refer to
Aliases
in above repo a better context.
f
SST uses
esbuild
to bundle the functions. I think
esbuild
looks at the
path
config from your
tsconfig.js
. Can you see if this works for you? https://github.com/evanw/esbuild/issues/38
v
Thanks @Frank Worked 🙌