https://serverless-stack.com/ logo
#help
Title
# help
f

Franco Gotusso

01/05/2022, 2:12 PM
Hello folks! Looking at the documentation I think I should be able to turn off eslint bundling via FunctionBundleNodejsProps.bundle but I'm having some troubles to make it work as I keep having errors from it. Then I looked at the sst source and the option seems to be ignored altogether? - https://github.com/serverless-stack/serverless-stack/blob/master/packages/core/src/runtime/handler/node.ts#L106 - https://github.com/serverless-stack/serverless-stack/blob/master/packages/core/src/stacks/build.ts#L22 Is that right or did I misunderstood how it is supposed to work? For context here our team had one million problems because esbuild breaking the output when bundling dependencies so we're looking for a way out. Alternatively we're thinking about packaging as a docker image, but from what I understand we would need to handle all of it ourselves. Is there any ETA for supporting docker? Thanks!
t

thdxr

01/07/2022, 7:10 PM
Ah we may have lost the ability to disable bundling in the big refactor we did. Curious why you're looking to disable bundling?
f

Franco Gotusso

01/10/2022, 11:48 AM
long story short, we're using nest and typeorm that do a lot of dynamic requires for discovering modules, entities, etc and that breaks more often than not with esbuild bundling We also had some problems with the differences sst does for dev and prod regarding externalModules which I know you were working on to simplify Basically trying to add predictability to the whole setup
t

thdxr

01/10/2022, 1:03 PM
Got it, dev and prod both behave the same now with regard to modules
I'll bring back disabling the bundle option
f

Franco Gotusso

01/10/2022, 2:44 PM
that would be great, thanks 🙇
f

Frank

01/25/2022, 9:52 PM
Leaving a note here that this has been fixed in 0.57.4