Is there a way to change or adjust the behavior of...
# help
e
Is there a way to change or adjust the behavior of
esbuild
in sst. Specifically, how does one use
--externals
to control bundling behavior? If not, is the recommended path to run
sst build/start ..
on an already transpiled src use the customized
esbuild
process.
r
You can set external modules in the properties of the bundle, if that's what you need?
t
checkout this doc: https://docs.serverless-stack.com/constructs/v1/Function#externalmodules I think the example is actually wrong, should be
externalModules
e
Thanks. That helps. Does it support glob patterns?
f
externalModules
is being passed as is to esbuild, it should support the patterns that esbuild support.