This may be a really dumb question, but: Where doe...
# help
m
This may be a really dumb question, but: Where does one set the new
bundle.format
option?
c
actually i have the same doubt
f
Hey @Michael Clifford, that’s set inside an `sst.Function`’s prop:
Copy code
// set on all functions
app.setDefaultFunctionProps({
  bundle: {
    format: "esm",
  },
});
m
Thank you @Frank!
@Frank and this option would only be relevant for stacks that use the node runtime?
j
f
@Michael Clifford sorry missed ur earlier msg. While the
bundle
option is configurable for both Node.js and Python runtimes, what is being configured is quite runtime specific.
bundle.format
takes either
esm
or
cjs
which gets passed down to
esbuild
, which is used to bundle Node.js functions.