just wanted to check something: this is the correc...
# help
s
just wanted to check something: this is the correct way to handle dependencies that are binaries, correct?
Copy code
bundle: {
      // sharp is a binary, and we have it in a Lambda layer, so exclude it
      externalModules: ['sharp'],
      loader: {
        '.node': 'binary',
      },
    },
t
you probably want nodeModules instead of external
s
the docs say:
Similarly, if you have a module that you are packaging as a Lambda Layer, you’ll need to list that as an external.
I definitely don’t want it packaged up in node_modules when it uploads the bundle