Open jonioni opened 1 year ago
We are unable to make use of newer typescript features because of this. Although our package.json
specifies a newer version of typescript and our code compiles with tsc
, we are unable to package using serverless-bundle
because it uses the version it specifies... What's the deal with that?
Anyone got a solution on this? Been wanting to update to the newest version
@fabiosenracorrea Unfortunately I was forced to switch away from serverless-bundle
in favor of serverless-webpack
. It did require a bit of configuration, but I'm happy that serverless-bundle
no longer has a say in my Typescript version. Which never really made sense anyways...
I actually tried and gave up on doing this work some time ago because I found it really challenging to figure out what I needed in the webpack configuration. It would've been awesome if serverless-bundle
had an "eject" functionality, which seems reasonable and consistent with other full-service opinionated frameworks/starter-kits.
Here's some of what I came up with below, hopefully it helps others that are on this path.
@Jackman3005 awesome!! Thanks, I will def give it a try. Sucks that such a nice tool is probably out of my projects due to this TS version lock. I haven't been able to explore options as time is a constraint but i guess I will have to find a way, it's getting out of hand
@fabiosenracorrea Yeah I totally agree. I really don't want to spend any time thinking about these things and I just want it all to work.
I respect the challenge serverless-bundle
has in trying to make different setups (i.e. different TS versions in this case) all work well while avoiding as much configuration as possible, but that is the intended scope of the library as I understand it. In this case it currently falls short.
It would be great to upgrade related dependencies for Typescript v5.
Current packages: https://github.com/AnomalyInnovations/serverless-bundle/blob/e1ae01aa5e644fc835d1a473e4b32b6396af4c17/package.json#L76
https://github.com/AnomalyInnovations/serverless-bundle/blob/e1ae01aa5e644fc835d1a473e4b32b6396af4c17/package.json#L41-L42