jaydp17/serverless-plugin-ncc

When providing `externals` to ncc, can the plugin auto include those externals to the deployment package?

MacMcIrish opened this issue · 1 comments

For example, with the following custom config:

custom:
  ncc:
    externals:
      - 'external-packge'

Is it possible for the plugin to inject those externals similar to:

package:
  include:
    - 'node_modules/external-package/**'

Thanks for the plugin btw!

Hello @MacMcIrish, I don't think that's something that this plugin should do.
However, if you just want this for development only & if the external-package is available in the node_modules/ directory, it should pick it up.

For example:

<project-root>/
├── dist/
└── node_modules/
    └── external-module/