Michael Clifford
01/19/2022, 4:32 PMbundle.format
option?Carlos Daniel
01/19/2022, 5:20 PMFrank
// set on all functions
app.setDefaultFunctionProps({
bundle: {
format: "esm",
},
});
Michael Clifford
01/19/2022, 5:22 PMMichael Clifford
01/19/2022, 5:24 PMJay
Frank
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.