In my serverless.yml, I use both serverless-tscpaths plugin for resolving paths defined in tsconfig and serverless-plugin-optimize for minifying and reducing the bundle size. However when the serverless-tscpaths plugin is executed all the paths defined in tsconfig are converted to relative paths which doesn't work with minified file.
This problem may be outside of these plugins and just how babel minifying works. Not sure what the solution is here.
Thanks