feat(externals): add option to disable packing of external modules#119
feat(externals): add option to disable packing of external modules#119mattjennings wants to merge 1 commit intofloydspace:masterfrom mattjennings:pack-externals-option
Conversation
|
Hi @mattjennings, thank you for your PR.
we already have the option what can we do extra is making |
|
Ah yes, I hadn't considered the |
also works for me 👍, please also describe it in the readme if you gonna make the fix. |
|
@floydspace @mattjennings I've opened #167 for pattern matching. Could you please give it a look? |
Adds an additional configuration option
packExternalswhich will disable installing & bundling modules listed as external.This is useful for if you want to exclude externals from esbuild but you don't need them installed & packed separately. My use-case was with serverless-offline as externals can be imported normally from node_modules, leading to a faster build. Another use-case could be if you're using lambda layers.