I have a lambda function that does a bit of server side rendering. I am using lambda's esbuild config. Here is a look at the config. I guess its similar to this issue but different since I am not using Meteor. I am wondering if anyone knows how to solve this issue in the context of a Lambda function or even using webpack. I get this error at runtime.
bundling: {
externalModules: ['canvas'],
loader: {
'.woff': 'text',
'.svg': 'text',
'.js': 'jsx'
},
}